diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-09-29 21:45:27 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-09-29 21:45:27 +0200 |
commit | 59bc3b48fdffb76ee65a4b630be3ffa1f6c20c80 (patch) | |
tree | e87df15c5ca81556fd1925ad56ba404f664c890e /inc/infoutils.php | |
parent | e0c26282a603881e8d2f839d94c28dbbfc57d71b (diff) | |
download | rpg-59bc3b48fdffb76ee65a4b630be3ffa1f6c20c80.tar.gz rpg-59bc3b48fdffb76ee65a4b630be3ffa1f6c20c80.tar.bz2 |
more scrutinizer issue improvements
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r-- | inc/infoutils.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index f9ba11560..9c297a28d 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -296,6 +296,7 @@ define('MSG_ADMINS_ONLY',4); */ function msg($message,$lvl=0,$line='',$file='',$allow=MSG_PUBLIC){ global $MSG, $MSG_shown; + $errors = array(); $errors[-1] = 'error'; $errors[0] = 'info'; $errors[1] = 'success'; @@ -452,7 +453,7 @@ function dbg_backtrace(){ }elseif(is_array($arg)){ $params[] = '[Array]'; }elseif(is_null($arg)){ - $param[] = '[NULL]'; + $params[] = '[NULL]'; }else{ $params[] = (string) '"'.$arg.'"'; } |