/**
  * Logs the specified error
  *
  * @access public
  * @param  mixed $error_msg The error message
  * @param  string $script The script name where the error happened
  * @param  integer $line The line number where the error happened
  */
 function logError($error_msg = "", $script = "", $line = "")
 {
     if (REPORT_ERROR_FILE) {
         Error_Handler::logToFile($error_msg, $script, $line);
     }
     $setup = Setup::load();
     if (@$setup['email_error']['status'] == 'enabled') {
         // if there's no db_api object, then we cannot
         // possibly queue up the error emails
         if (!is_null(@$GLOBALS["db_api"])) {
             Error_Handler::_notify($error_msg, $script, $line);
         }
     }
 }