phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4686 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4686 - phpcompta/trunk/include
Date: Mon, 9 Jan 2012 12:28:49 +0100 (CET)

Author: danydb
Date: 2012-01-09 12:28:48 +0100 (Mon, 09 Jan 2012)
New Revision: 4686

Modified:
   phpcompta/trunk/include/class_fiche_attr.php
Log:
V?\195?\169rifie que ad_extra contient un SQL valide

Modified: phpcompta/trunk/include/class_fiche_attr.php
===================================================================
--- phpcompta/trunk/include/class_fiche_attr.php        2012-01-09 11:22:20 UTC 
(rev 4685)
+++ phpcompta/trunk/include/class_fiche_attr.php        2012-01-09 11:28:48 UTC 
(rev 4686)
@@ -82,6 +82,14 @@
             case 'zone':
                 $this->ad_size=22;
                 break;
+            case 'select':
+                $this->ad_size=22;
+                try{
+                    $a=$this->cn->exec_sql($this->ad_extra);
+                }catch (Exception $e)
+                {
+                    throw new Exception ("La requĂȘte SQL est invalide ");
+                }
             default:
                 $this->ad_size=22;
             }
@@ -89,6 +97,7 @@
     }
     public function save()
     {
+       
         /* please adapt */
         if (  $this->ad_id == 0 )
             $this->insert();




reply via email to

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