Marius Cramer
2015-04-07 cc7a82756b4f4d7ab18e928527c37489adbaf564
server/lib/classes/monitor_tools.inc.php
@@ -259,7 +259,7 @@
      $server_id = intval($conf['server_id']);
      /**  get the "active" Services of the server from the DB */
      $services = $app->db->queryOneRecord('SELECT * FROM server WHERE server_id = ' . $server_id);
      $services = $app->db->queryOneRecord('SELECT * FROM server WHERE server_id = ?', $server_id);
      /*
       * If the DB is down, we have to set the db to "yes".
       * If we don't do this, then the monitor will NOT monitor, that the db is down and so the
@@ -670,12 +670,12 @@
       */
      $sql = 'DELETE FROM monitor_data ' .
         'WHERE ' .
         '  type =' . "'" . $app->dbmaster->quote($type) . "' " .
         '  type = ?' .
         'AND ' .
         '  created < ' . $old . ' ' .
         '  created < ? ' .
         'AND ' .
         '  server_id = ' . $serverId;
      $app->dbmaster->query($sql);
         '  server_id = ?';
      $app->dbmaster->query($sql, $type, $old, $serverId);
   }
   public function send_notification_email($template, $placeholders, $recipients) {