tbrehm
2013-02-28 90edcde0946a5c89187111f49d03737ae33a965d
Disable mysql error messages in demo mode.
1 files modified
2 ■■■ changed files
interface/lib/classes/db_mysql.inc.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/db_mysql.inc.php
@@ -108,7 +108,7 @@
    if($this->errorNumber) {
      $error_msg = $this->errorLocation .' '. $this->errorMessage;
      // This right here will allow us to use the samefile for server & interface
      if($this->show_error_messages) {
      if($this->show_error_messages && $conf['demo_mode'] != true) {
    echo $error_msg;
      } else if(is_object($app) && method_exists($app, 'log')) {
    $app->log($error_msg, LOGLEVEL_WARN);