projects
/
fusionforge
/
fusionforge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix PHP warning
[fusionforge/fusionforge.git]
/
src
/
common
/
valid
/
ValidFactory.class.php
diff --git
a/src/common/valid/ValidFactory.class.php
b/src/common/valid/ValidFactory.class.php
index e353f2ab5829ab590e93b1ff84c051ac340c2774..7a9f4ba35e4ad331db547258ded104bbed074a63 100644
(file)
--- a/
src/common/valid/ValidFactory.class.php
+++ b/
src/common/valid/ValidFactory.class.php
@@
-95,7
+95,8
@@
class Valid_String extends Valid_Text {
class Valid_WhiteList extends Valid {
function __construct($key, $whitelist) {
parent::__construct($key);
- $this->addRule(new Rule_WhiteList($whitelist));
+ $rwl = new Rule_WhiteList($whitelist);
+ $this->addRule($rwl);
}
}