mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
Fix some issues with database engines :
- insert into syntax not correct for posgresql or sqlite - add languages table - incorrect function for row count (sqlite) git-svn-id: http://piwigo.org/svn/trunk@5452 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -78,11 +78,11 @@ class languages
|
||||
break;
|
||||
}
|
||||
|
||||
$query = "
|
||||
INSERT INTO ".LANGUAGES_TABLE."
|
||||
SET id = '".$language_id."',
|
||||
name = '".$this->fs_languages[$language_id]."'
|
||||
;";
|
||||
$query = '
|
||||
INSERT INTO '.LANGUAGES_TABLE.'
|
||||
(id, name)
|
||||
VALUES(\''.$language_id.'\', \''.$this->fs_languages[$language_id].'\')
|
||||
;';
|
||||
pwg_query($query);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user