Enhanced the ignore for unexisting relations when installing

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@544614 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2012-05-15 19:19:51 +00:00
parent 7692aa54c4
commit b2c7c3e662

View File

@@ -136,7 +136,7 @@
if( defined('WP_INSTALLING') && WP_INSTALLING) if( defined('WP_INSTALLING') && WP_INSTALLING)
{ {
global $table_prefix; global $table_prefix;
$ignore = strpos($err, 'relation "'.$table_prefix.'options"'); $ignore = strpos($err, 'relation "'.$table_prefix);
} }
if( ! $ignore ) if( ! $ignore )
error_log('['.microtime(true)."] Error running :\n$initial\n---- converted to ----\n$sql\n----> $err\n---------------------\n", 3, PG4WP_LOG.'pg4wp_errors.log'); error_log('['.microtime(true)."] Error running :\n$initial\n---- converted to ----\n$sql\n----> $err\n---------------------\n", 3, PG4WP_LOG.'pg4wp_errors.log');