Changeset 504 in subversion
- Timestamp:
- Mar 13, 2007 6:53:26 PM (6 years ago)
- Location:
- trunk/roundcubemail/program/include
- Files:
-
- 2 edited
-
rcube_db.inc (modified) (3 diffs)
-
rcube_imap.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_db.inc
r328 r504 294 294 case 'pgsql': 295 295 $result = &$this->db_handle->getOne("SELECT CURRVAL('$sequence')"); 296 297 case 'mssql':298 $result = &$this->db_handle->getOne("SELECT @@IDENTITY");299 300 296 if (DB::isError($result)) 301 297 raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, 302 298 'message' => $result->getMessage()), TRUE, FALSE); 303 299 return $result; 300 301 case 'mssql': 302 $result = &$this->db_handle->getOne("SELECT @@IDENTITY"); 303 if (DB::isError($result)) 304 raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, 305 'message' => $result->getMessage()), TRUE, FALSE); 304 306 return $result; 305 307 … … 309 311 case 'mysqli': 310 312 return mysqli_insert_id($this->db_handle->connection); 311 313 312 314 case 'sqlite': 313 315 return sqlite_last_insert_rowid($this->db_handle->connection); … … 359 361 function _fetch_row($result, $mode) 360 362 { 361 if ( DB::isError($result))363 if (!$result || DB::isError($result)) 362 364 { 363 365 raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, -
trunk/roundcubemail/program/include/rcube_imap.inc
r503 r504 879 879 $results = array(); 880 880 foreach ($criteria as $crit) 881 $results = array_merge($results, $this->search($mbox_name, $crit, $str, $charset)); 881 if ($search_result = $this->search($mbox_name, $crit, $str, $charset)) 882 $results = array_merge($results, $search_result); 882 883 883 884 $results = array_unique($results);
Note: See TracChangeset
for help on using the changeset viewer.
