This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via f676b296a131cc52b1c481f5d19c0a5043c80ed2 (commit)
from 73f1bbaf7fbdf4ef8b35fadb9a579849e33d088c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=f676b296a131cc52b1c481f5d19c0a5043c80ed2
commit f676b296a131cc52b1c481f5d19c0a5043c80ed2
Author: Franck Villaume <[email protected]>
Date: Sun Dec 15 18:59:10 2019 +0100
fix PHP warning
diff --git a/src/common/valid/ValidFactory.class.php
b/src/common/valid/ValidFactory.class.php
index cace988..e353f2a 100644
--- a/src/common/valid/ValidFactory.class.php
+++ b/src/common/valid/ValidFactory.class.php
@@ -3,6 +3,7 @@
* Copyright (c) STMicroelectronics, 2007. All Rights Reserved.
*
* Originally written by Manuel VACELET, 2007.
+ * Copyright 2019, Franck Villaume - TrivialDev
*
* This file is a part of Fusionforge.
*
@@ -28,8 +29,10 @@ require_once 'common/valid/Valid.class.php';
*/
class Valid_UInt extends Valid {
function validate($value) {
- $this->addRule(new Rule_Int());
- $this->addRule(new Rule_GreaterOrEqual(0));
+ $nri = new Rule_Int();
+ $nrgoe = new Rule_GreaterOrEqual(0);
+ $this->addRule($nri);
+ $this->addRule($nrgoe);
return parent::validate($value);
}
}
@@ -69,7 +72,8 @@ class Valid_Pv extends Valid {
*/
class Valid_Text extends Valid {
function validate($value) {
- $this->addRule(new Rule_String());
+ $rs = new Rule_String();
+ $this->addRule($rs);
return parent::validate($value);
}
}
@@ -79,7 +83,8 @@ class Valid_Text extends Valid {
*/
class Valid_String extends Valid_Text {
function validate($value) {
- $this->addRule(new Rule_NoCr());
+ $rnc = new Rule_NoCr();
+ $this->addRule($rnc);
return parent::validate($value);
}
}
diff --git a/src/common/widget/Valid_Widget.class.php
b/src/common/widget/Valid_Widget.class.php
index 88b9679..29ab49e 100644
--- a/src/common/widget/Valid_Widget.class.php
+++ b/src/common/widget/Valid_Widget.class.php
@@ -3,6 +3,7 @@
* Copyright (c) STMicroelectronics, 2008. All Rights Reserved.
*
* Originally written by Manuel VACELET, 2008.
+ * Copyright 2019, Franck Villaume - TrivialDev
*
* This file is a part of Fusionforge.
*
@@ -28,7 +29,8 @@ require_once 'Rule_Widget.class.php';
*/
class Valid_Widget_Owner extends Valid_String {
function validate($value) {
- $this->addRule(new Rule_Widget_Owner());
+ $nrwo = new Rule_Widget_Owner();
+ $this->addRule($nrwo);
return parent::validate($value);
}
}
-----------------------------------------------------------------------
Summary of changes:
src/common/valid/ValidFactory.class.php | 13 +++++++++----
src/common/widget/Valid_Widget.class.php | 4 +++-
2 files changed, 12 insertions(+), 5 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits