예제 #1
0
 public static function msg_debugt($text)
 {
     if (is_object($text) || is_array($text) || $text === null || $text === false || $text === true) {
         $text = json_encode($text);
     }
     self::$g->msg("merror", Ht::pre_text_wrap($text));
     return false;
 }
예제 #2
0
 function qe($query, $while = "", $suggestRetry = false)
 {
     global $OK;
     if ($while || $suggestRetry) {
         error_log(caller_landmark() . ": bad call to Conference::qe");
     }
     $result = $this->dblink->query($query);
     if ($result === false) {
         if (PHP_SAPI == "cli") {
             fwrite(STDERR, caller_landmark() . ": " . $this->db_error_text(true, "[{$query}]") . "\n");
         } else {
             $this->errorMsg($this->db_error_html(true, Ht::pre_text_wrap($query)));
         }
         $OK = false;
     }
     return $result;
 }