From 7804ec66b10f7ae999b189791695ea193b6ec189 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 18 Jun 2014 12:20:22 -0500 Subject: [PATCH] lint: Fix various pre-release issues --- include/class.osticket.php | 3 ++- setup/test/tests/stubs.php | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/class.osticket.php b/include/class.osticket.php index 284eebff2..b30647742 100644 --- a/include/class.osticket.php +++ b/include/class.osticket.php @@ -305,6 +305,8 @@ class osTicket { $level=3; //Debug } + $loglevel=array(1=>'Error','Warning','Debug'); + $info = array( 'title' => &$title, 'level' => $loglevel[$level], @@ -322,7 +324,6 @@ class osTicket { $this->alertAdmin($title, $message); //Save log based on system log level settings. - $loglevel=array(1=>'Error','Warning','Debug'); $sql='INSERT INTO '.SYSLOG_TABLE.' SET created=NOW(), updated=NOW() ' .',title='.db_input(Format::sanitize($title, true)) .',log_type='.db_input($loglevel[$level]) diff --git a/setup/test/tests/stubs.php b/setup/test/tests/stubs.php index 326a7dbf0..e41ac16d3 100644 --- a/setup/test/tests/stubs.php +++ b/setup/test/tests/stubs.php @@ -26,6 +26,11 @@ class mysqli_stmt { function free() {} } +class mysqli_result { + function free() {} + function free_result() {} +} + class ReflectionClass { function getMethods() {} function getConstants() {} -- GitLab