1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

PHP Warning removal.

This commit is contained in:
Cameron
2016-04-14 16:54:59 -07:00
parent 48f65c823f
commit 93ef3ed107

View File

@@ -65,11 +65,14 @@ class e_admin_log
*/ */
public function __construct($options = array()) public function __construct($options = array())
{ {
foreach ($options as $key=>$val) if(!empty($options))
{ {
$this->_options[$key] = $val; foreach ($options as $key=>$val)
{
$this->_options[$key] = $val;
}
} }
define("E_LOG_INFORMATIVE", 0); // Minimal Log Level, including really minor stuff define("E_LOG_INFORMATIVE", 0); // Minimal Log Level, including really minor stuff
define("E_LOG_NOTICE", 1); // More important than informative, but less important than notice define("E_LOG_NOTICE", 1); // More important than informative, but less important than notice
define("E_LOG_WARNING", 2); // Not anything serious, but important information define("E_LOG_WARNING", 2); // Not anything serious, but important information