noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 233/323: Backward comptability for SQL functi


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 233/323: Backward comptability for SQL function
Date: Wed, 14 Mar 2018 17:38:56 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 96ae3669e862910747178d567f7c70801dd89162
Author: Dany De Bontridder <address@hidden>
Date:   Fri Feb 23 08:02:26 2018 +0100

    Backward comptability for SQL function
---
 include/lib/database.class.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/lib/database.class.php b/include/lib/database.class.php
index 17a6bac..94b69c1 100644
--- a/include/lib/database.class.php
+++ b/include/lib/database.class.php
@@ -342,8 +342,9 @@ class Database
             }
             if ($flag_function)
             {
-                if (strpos(strtolower($buffer), "$$;")===false &&
-                        strpos(strtolower($buffer), '$_$;')===false 
+                if (    strpos(strtolower($buffer), "$$;")===false      &&
+                        strpos(strtolower($buffer), '$_$;')===false   &&
+                        strpos(strtolower($buffer), 'language 
plpgsql;')===false 
                     )
                 {
                     $sql.=$buffer;



reply via email to

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