projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90b6b81
)
Adds a missing global ;
author
Stéphane Jacob
<jacou@melix.net>
Tue, 5 Aug 2008 17:49:04 +0000
(19:49 +0200)
committer
Stéphane Jacob
<jacou@melix.net>
Tue, 5 Aug 2008 17:49:04 +0000
(19:49 +0200)
include/validations.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/include/validations.inc.php
b/include/validations.inc.php
index
2f11046
..
d5cd9e0
100644
(file)
--- 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);