From: Michael M Slusarz Date: Fri, 27 Mar 2009 16:54:37 +0000 (-0600) Subject: Use is_null(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0d2a4911515604829909f96f47cdffd4a76975be;p=horde.git Use is_null(). --- diff --git a/imp/lib/Search.php b/imp/lib/Search.php index 5324e20fc..4363296f7 100644 --- a/imp/lib/Search.php +++ b/imp/lib/Search.php @@ -616,7 +616,9 @@ class IMP_Search */ public function isSearchMbox($id = null) { - return ($id === null) ? !empty($this->_id) : isset($_SESSION['imp']['search']['q'][$this->_strip($id)]); + return is_null($id) + ? !empty($this->_id) + : isset($_SESSION['imp']['search']['q'][$this->_strip($id)]); } /** @@ -641,7 +643,9 @@ class IMP_Search */ public function searchMboxID() { - return ($this->_id !== null) ? $this->_id : false; + return is_null($this->_id) + ? false + : $this->_id; } /** @@ -654,7 +658,9 @@ class IMP_Search */ protected function _strip($id) { - return ($id === null) ? $this->_id : ((strpos($id, IMP::SEARCH_MBOX) === 0) ? substr($id, strlen(IMP::SEARCH_MBOX)) : $id); + return is_null($id) + ? $this->_id + : ((strpos($id, IMP::SEARCH_MBOX) === 0) ? substr($id, strlen(IMP::SEARCH_MBOX)) : $id); } /**