svncommit
2007-05-23 2c633703e97eb6e7aa7ba840ef86b1fc1bd98ada
program/include/rcube_db.inc
old mode 100755 new mode 100644
@@ -5,7 +5,7 @@
 | program/include/rcube_db.inc                                          |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | PURPOSE:                                                              |
@@ -102,7 +102,7 @@
      $this->db_error = TRUE;
      $this->db_error_msg = $dbh->getMessage();
      raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__,
      raise_error(array('code' => 603, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__,
                        'message' => $this->db_error_msg), TRUE, FALSE);
                        
      return FALSE;
@@ -360,12 +360,14 @@
   */
  function _fetch_row($result, $mode)
    {
    if (!$result || !is_object($result) || DB::isError($result))
    if (!$result || DB::isError($result))
      {
      raise_error(array('code' => 500, 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__,
                        'message' => $this->db_link->getMessage()), TRUE, FALSE);
      return FALSE;
      }
      elseif (!is_object($result))
      return FALSE;
                         
    return $result->fetchRow($mode);
    }