noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 06/09: bug if accounting is not given


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 06/09: bug if accounting is not given
Date: Sat, 06 Dec 2014 18:57:39 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit f7ec5592b5c7851f8f129c9ad098eab2003dc96f
Author: Dany De Bontridder <address@hidden>
Date:   Sat Dec 6 19:05:56 2014 +0100

    bug if accounting is not given
---
 include/class_fiche_def.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/class_fiche_def.php b/include/class_fiche_def.php
index 719fed5..c58435e 100644
--- a/include/class_fiche_def.php
+++ b/include/class_fiche_def.php
@@ -244,7 +244,7 @@ $order
             $p_create='false';
 
         // Class is valid ?
-        if ( sql_string($p_class_base) != null || strpos(',',$p_class_base) != 
0 )
+        if ( sql_string($p_class_base) != null || ( $p_class_base !='' && 
strpos(',',$p_class_base) != 0 ))
         {
             // p_class is a valid number
             $sql="insert into 
fiche_def(fd_label,fd_class_base,frd_id,fd_create_account,fd_description)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]