Changeset 2463 in subversion
- Timestamp:
- May 9, 2009 4:07:10 PM (4 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_mdb2.php (modified) (3 diffs)
-
program/include/session.inc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r2458 r2463 2 2 =========================== 3 3 4 - Fix session handling on non-session SQL query error (#1485734) 4 5 - Fix html editor mode setting when reopening draft message (#1485834) 5 6 - Added quick search box menu (#1484304) -
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 -
trunk/roundcubemail/program/include/session.inc
r2237 r2463 40 40 $DB = rcmail::get_instance()->get_dbh(); 41 41 42 if ($DB->is_error()) {43 return false;44 }45 46 42 $sql_result = $DB->query( 47 43 "SELECT vars, ip, " . $DB->unixtimestamp('changed') . " AS changed … … 67 63 $DB = rcmail::get_instance()->get_dbh(); 68 64 69 if ($DB->is_error()) {70 return false;71 }72 73 65 $sql_result = $DB->query( 74 66 "SELECT 1 FROM " . get_table_name('session') . " … … 106 98 $DB = $rcmail->get_dbh(); 107 99 108 if ($DB->is_error()) {109 return false;110 }111 112 100 $DB->query("DELETE FROM " . get_table_name('session') . " WHERE sess_id=?", $key); 113 101 … … 121 109 $rcmail = rcmail::get_instance(); 122 110 $DB = $rcmail->get_dbh(); 123 124 if ($DB->is_error()) {125 return false;126 }127 111 128 112 // just delete all expired sessions
Note: See TracChangeset
for help on using the changeset viewer.
