Author: danydb
Date: 2012-01-09 13:26:17 +0100 (Mon, 09 Jan 2012)
New Revision: 4688
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:29:19 UTC
(rev 4687)
+++ phpcompta/trunk/include/class_fiche_attr.php 2012-01-09 12:26:17 UTC
(rev 4688)
@@ -84,7 +84,9 @@
break;
case 'select':
$this->ad_size=22;
+ if (trim($this->ad_extra)="") throw new Exception ("La requĂȘte
SQL est vide ");
try{
+
$a=$this->cn->exec_sql($this->ad_extra);
}catch (Exception $e)
{
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev