From 6a3cb3456c0aec9bcc751fc20f344a4961438e41 Mon Sep 17 00:00:00 2001 From: marj Date: Sat, 8 Aug 2009 08:11:02 +0000 Subject: [PATCH] details --- e107_handlers/pref_class.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/e107_handlers/pref_class.php b/e107_handlers/pref_class.php index f73cd9447..6a5ab4dbe 100644 --- a/e107_handlers/pref_class.php +++ b/e107_handlers/pref_class.php @@ -9,9 +9,9 @@ * e107 Preference Handler * * $Source: /cvs_backup/e107_0.8/e107_handlers/pref_class.php,v $ - * $Revision: 1.8 $ - * $Date: 2009-08-06 22:19:47 $ - * $Author: secretr $ + * $Revision: 1.9 $ + * $Date: 2009-08-08 08:11:02 $ + * $Author: marj_nl_fr $ */ if (!defined('e107_INIT')) { exit; } @@ -325,7 +325,7 @@ class e_pref extends e_model $id = $this->prefid; $data = $force ? false : $this->getPrefCache(true); - if(false !== $data) + if($data !== false) { //var_dump('Pref cache used: '.$this->alias); $this->pref_cache = e107::getArrayStorage()->WriteArray($data, false); //runtime cache @@ -351,7 +351,8 @@ class e_pref extends e_model $this->setPrefCache($row['e107_value'], true); } - if(empty($data)) $data = array(); + if(empty($data)) + $data = array(); return $this->loadData($data, false); } @@ -400,7 +401,7 @@ class e_pref extends e_model if(e107::getDb()->db_Select_gen("REPLACE INTO `#core` (e107_name,e107_value) values ('{$this->prefid}', '".addslashes($dbdata)."') ")) { - if(true === $this->set_backup) + if($this->set_backup === true) { if($this->serial_bc) { @@ -476,7 +477,7 @@ class e_pref extends e_model if($save) { - ecache::set_sys('Config_'.(true !== $save ? $save : $this->alias), $cache_string, true); + ecache::set_sys('Config_'.($save !== true ? $save : $this->alias), $cache_string, true); } return $this; } @@ -1669,7 +1670,7 @@ class e_model */ public function __toString() { - return $this->toString((true === func_get_arg(0))); + return $this->toString((func_get_arg(0) === true)); } }