Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-2476 now.

SQlite backup page error when not using table prefix (fix completed in vcs)

If not using a table prefix with SQlite, $table_prefix is empty, resulting in the following error when trying to view the database backup page:
PHP Notice: in file /includes/acp/acp_database.php on line 1054: strpos() [function.strpos]: Empty delimiter.


Suggested fix: replace line 1054 of acp_database.php with
Code: Select all
if (empty($table_prefix) || strpos($row['name'], $table_prefix) === 0)

Or (because empty() considers the string '0' to be empty)
Code: Select all
if (strlen($table_prefix) == 0 || strpos($row['name'], $table_prefix) === 0)


Thanks, Eli

Comments / History

Posted by DavidMJ (Former Team Member) on Dec 9th 2006, 22:46

Thanks Very Happy

Linked ticket with changeset: r6733

Action performed by DavidMJ (Former Team Member) on Dec 9th 2006, 22:47

Ticket details

Related SVN changesets