r84826 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84825‎ | r84826 | r84827 >
Date:01:22, 27 March 2011
Author:reedy
Status:ok
Tags:
Comment:
Remove remaining empty() call in r79119
Modified paths:
  • /trunk/phase3/includes/db/DatabaseMysql.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/DatabaseMysql.php
@@ -542,7 +542,7 @@
543543 $vars = get_object_vars($table);
544544 $table = array_pop( $vars );
545545
546 - if( empty( $prefix ) || strpos( $table, $prefix ) === 0 ) {
 546+ if( !$prefix || strpos( $table, $prefix ) === 0 ) {
547547 $endArray[] = $table;
548548 }
549549 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r79119Fix r79109: listTables() does not work without a prefix, and verified that SQ...soxred9318:30, 28 December 2010

Status & tagging log