Skip to content

Commit b7b2bfe

Browse files
helmoTill Brehm
authored andcommitted
Purge the LOGLEVEL_INFO constant to avoid Use of undefined constant warnings
1 parent e13f43c commit b7b2bfe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

interface/lib/classes/db_mysql.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,16 +514,16 @@ private function check_utf8($str) {
514514
public function escape($sString) {
515515
global $app;
516516
if(!is_string($sString) && !is_numeric($sString)) {
517-
$app->log('NON-String given in escape function! (' . gettype($sString) . ')', LOGLEVEL_INFO);
517+
$app->log('NON-String given in escape function! (' . gettype($sString) . ')', LOGLEVEL_DEBUG);
518518
//$sAddMsg = getDebugBacktrace();
519-
$app->log($sAddMsg, LOGLEVEL_DEBUG);
519+
//$app->log($sAddMsg, LOGLEVEL_DEBUG);
520520
$sString = '';
521521
}
522522

523523
$cur_encoding = mb_detect_encoding($sString);
524524
if($cur_encoding != "UTF-8") {
525525
if($cur_encoding != 'ASCII') {
526-
if(is_object($app) && method_exists($app, 'log')) $app->log('String ' . substr($sString, 0, 25) . '... is ' . $cur_encoding . '.', LOGLEVEL_INFO);
526+
if(is_object($app) && method_exists($app, 'log')) $app->log('String ' . substr($sString, 0, 25) . '... is ' . $cur_encoding . '.', LOGLEVEL_DEBUG);
527527
if($cur_encoding) $sString = mb_convert_encoding($sString, 'UTF-8', $cur_encoding);
528528
else $sString = mb_convert_encoding($sString, 'UTF-8');
529529
}

server/lib/classes/db_mysql.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,16 +514,16 @@ private function check_utf8($str) {
514514
public function escape($sString) {
515515
global $app;
516516
if(!is_string($sString) && !is_numeric($sString)) {
517-
$app->log('NON-String given in escape function! (' . gettype($sString) . ')', LOGLEVEL_INFO);
517+
$app->log('NON-String given in escape function! (' . gettype($sString) . ')', LOGLEVEL_DEBUG);
518518
//$sAddMsg = getDebugBacktrace();
519-
$app->log($sAddMsg, LOGLEVEL_DEBUG);
519+
//$app->log($sAddMsg, LOGLEVEL_DEBUG);
520520
$sString = '';
521521
}
522522

523523
$cur_encoding = mb_detect_encoding($sString);
524524
if($cur_encoding != "UTF-8") {
525525
if($cur_encoding != 'ASCII') {
526-
if(is_object($app) && method_exists($app, 'log')) $app->log('String ' . substr($sString, 0, 25) . '... is ' . $cur_encoding . '.', LOGLEVEL_INFO);
526+
if(is_object($app) && method_exists($app, 'log')) $app->log('String ' . substr($sString, 0, 25) . '... is ' . $cur_encoding . '.', LOGLEVEL_DEBUG);
527527
if($cur_encoding) $sString = mb_convert_encoding($sString, 'UTF-8', $cur_encoding);
528528
else $sString = mb_convert_encoding($sString, 'UTF-8');
529529
}

0 commit comments

Comments
 (0)