Author: danydb
Date: 2011-12-07 20:41:09 +0100 (Wed, 07 Dec 2011)
New Revision: 4578

Modified:
   phpcompta/trunk/include/class_menu_ref.php
Log:
check if file exists

Modified: phpcompta/trunk/include/class_menu_ref.php
===================================================================
--- phpcompta/trunk/include/class_menu_ref.php  2011-12-07 19:03:53 UTC (rev 
4577)
+++ phpcompta/trunk/include/class_menu_ref.php  2011-12-07 19:41:09 UTC (rev 
4578)
@@ -30,6 +30,8 @@
             if (trim($this->me_code)=='')
                     return -2;
         }
+        if ( ! file_exists('../include/'.$this->me_file)) return -3;
+        
         return 0;
     }
     


_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to