From 48ab33321212614bb37e180f17c84139665de7d1 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 7 May 2010 00:34:56 +0000 Subject: bug 1648 fixed: add the pwg_db_check_version functions for pdo-sqlite, sqlite and pgsql, also make the $pwg_db_link global in the install_db_connect function so that it can be used in SQLite functions. bug fixed: with pdo-sqlite, pwg_db_num_rows always returns 0, so when initializing user data, it tries to insert the same row twice. git-svn-id: http://piwigo.org/svn/trunk@6090 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_user.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions_user.inc.php') diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 41c97d0bb..4d755c445 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -298,7 +298,7 @@ SELECT ui.*, uc.*, t.name AS theme_name LEFT JOIN '.THEMES_TABLE.' AS t ON t.id = ui.theme WHERE ui.user_id = \''.$user_id.'\''; $result = pwg_query($query); - if (pwg_db_num_rows($result) > 0) + if ($result) { break; } -- cgit v1.2.3