Changeset 2463 in subversion for trunk/roundcubemail/program/include/rcube_mdb2.php
- Timestamp:
- May 9, 2009 4:07:10 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_mdb2.php
r2449 r2463 179 179 180 180 /** 181 * Connection state checker 182 * 183 * @param boolean True if in connected state 184 */ 185 function is_connected() 186 { 187 return PEAR::isError($this->db_handle) ? false : true; 188 } 189 190 191 /** 181 192 * Execute a SQL query 182 193 * … … 188 199 function query() 189 200 { 201 if (!$this->is_connected()) 202 return NULL; 203 190 204 $params = func_get_args(); 191 205 $query = array_shift($params); … … 361 375 function _fetch_row($result, $mode) 362 376 { 363 if ($result === FALSE || PEAR::isError($result) )377 if ($result === FALSE || PEAR::isError($result) || !$this->is_connected()) 364 378 return FALSE; 365 379
Note: See TracChangeset
for help on using the changeset viewer.
