Adds a missing global ;
authorStéphane Jacob <jacou@melix.net>
Tue, 5 Aug 2008 17:49:04 +0000 (19:49 +0200)
committerStéphane Jacob <jacou@melix.net>
Tue, 5 Aug 2008 17:49:04 +0000 (19:49 +0200)
include/validations.inc.php

index 2f11046..d5cd9e0 100644 (file)
@@ -140,6 +140,8 @@ abstract class Validate
      */
     public function clean()
     {
+        global $globals;
+
         if ($this->unique) {
             $success = XDB::execute('DELETE FROM requests WHERE user_id={?} AND type={?}',
                                     $this->uid, $this->type);