Post by JNeuhoff » Fri Aug 14, 2009 5:20 pm

There is still a bug in the Database Backup function. For example, for a given database name like 'opencart_1-3-2' it always results in the following error message:

Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-3-2' at line 1
Error No: 1064
SHOW TABLES FROM opencart_1-3-2


I suggest the following fix in file admin/model/tool/backup.php on line 16:

Code: Select all

		$table_query = $this->db->query("SHOW TABLES FROM `" . DB_DATABASE ."`");

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Daniel » Fri Aug 14, 2009 5:53 pm

thanks!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 5 guests