Moving to GitHub.
[platal.git] / include / validations.inc.php
index 8f5df65..9bcde80 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2011 Polytechnique.org                              *
+ *  Copyright (C) 2003-2014 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -440,6 +440,8 @@ abstract class Validate
         }
         if (!empty($where)) {
             $where = 'WHERE ' . implode('AND', $where);
+        } else {
+            $where = '';
         }
         $it = XDB::iterRow('SELECT  data, DATE_FORMAT(stamp, "%Y%m%d%H%i%s")
                               FROM  requests
@@ -671,5 +673,5 @@ foreach (glob(dirname(__FILE__) . '/validations/*.inc.php') as $file) {
     require_once $file;
 }
 
-/* vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 foldmethod=marker enc=utf-8: */
+/* vim:set expandtab shiftwidth=4 tabstop=4 softtabstop=4 foldmethod=marker fenc=utf-8: */
 ?>