From: Stéphane Jacob Date: Tue, 5 Aug 2008 17:49:04 +0000 (+0200) Subject: Adds a missing global ; X-Git-Tag: xorg/0.10.0~145 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=95e36b0fc2897c78e1e3c8c9eb1489b016c5108f;p=platal.git Adds a missing global ; --- diff --git a/include/validations.inc.php b/include/validations.inc.php index 2f11046..d5cd9e0 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -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);