Marius Cramer
2015-04-07 cc7a82756b4f4d7ab18e928527c37489adbaf564
server/lib/classes/cron.d/400-openvz.inc.php
@@ -55,10 +55,8 @@
      //######################################################################################################
      if ($app->dbmaster == $app->db) {
         $current_date = date('Y-m-d');
         //* Check which virtual machines have to be deactivated
         $sql = "SELECT * FROM openvz_vm WHERE active = 'y' AND active_until_date != '0000-00-00' AND active_until_date < '$current_date'";
         $sql = "SELECT * FROM openvz_vm WHERE active = 'y' AND active_until_date != '0000-00-00' AND active_until_date < CURDATE()";
         $records = $app->db->queryAllRecords($sql);
         if(is_array($records)) {
            foreach($records as $rec) {