cvs: pear /MDB2_Schema/MDB2/Schema Validate.php
| From: | Igor Feghali | Date: | Sat, 28 Oct 2006 19:19:10 +0000 |
| Subject: | cvs: pear /MDB2_Schema/MDB2/Schema Validate.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42873@lists.php.net to get a copy of this message | ||
ifeghali Sat Oct 28 19:19:10 2006 UTC
Modified files:
/pear/MDB2_Schema/MDB2/Schema Validate.php
Log:
- Checking if database['overwrite'] is not empty before validating it
http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/MDB2/Schema/Validate.php?r1=1.28&r2=1.29&diff_format=u
Index: pear/MDB2_Schema/MDB2/Schema/Validate.php
diff -u pear/MDB2_Schema/MDB2/Schema/Validate.php:1.28
pear/MDB2_Schema/MDB2/Schema/Validate.php:1.29
--- pear/MDB2_Schema/MDB2/Schema/Validate.php:1.28 Sat Oct 28 19:04:51 2006
+++ pear/MDB2_Schema/MDB2/Schema/Validate.php Sat Oct 28 19:19:10 2006
@@ -43,7 +43,7 @@
// | Author: Igor Feghali <ifeghali@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Validate.php,v 1.28 2006/10/28 19:04:51 ifeghali Exp $
+// $Id: Validate.php,v 1.29 2006/10/28 19:19:10 ifeghali Exp $
//
/**
@@ -550,6 +550,7 @@
/* Overwrite */
if (isset($database['overwrite'])
+ && $database['overwrite'] !== ''
&& !$this->isBoolean($database['overwrite'])
) {
return $this->raiseError(MDB2_SCHEMA_ERROR_VALIDATE,