diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-01-22 21:12:48 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-01-22 21:12:48 +0000 |
commit | 13b9118f4170ceace4a095cc952bdeb389d69c9a (patch) | |
tree | 6c6fcf2312d13bc0a440fe2d3c050d5946843c93 /include/dblayer/functions_mysql.inc.php | |
parent | f33339b964f3da16eb42e68b7c31acd1fbf2222f (diff) |
- fix icon display on index page (calendar by post date)
- remove unnecessary include_once
- mysql functions simplification
git-svn-id: http://piwigo.org/svn/trunk@8844 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/dblayer/functions_mysql.inc.php')
-rw-r--r-- | include/dblayer/functions_mysql.inc.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php index 7faf4c70a..9849ca3e9 100644 --- a/include/dblayer/functions_mysql.inc.php +++ b/include/dblayer/functions_mysql.inc.php @@ -77,9 +77,7 @@ function pwg_db_check_version() function pwg_get_db_version() { - list($mysql_version) = pwg_db_fetch_row(pwg_query('SELECT VERSION();')); - - return $mysql_version; + return mysql_get_server_info(); } function pwg_query($query) @@ -222,8 +220,8 @@ function mass_updates($tablename, $dbfields, $datas, $flags=0) if (count($datas) == 0) return; // depending on the MySQL version, we use the multi table update or N update queries - if (count($datas) < 10 or version_compare(mysql_get_server_info(), '4.0.4') < 0) - { // MySQL is prior to version 4.0.4, multi table update feature is not available + if (count($datas) < 10) + { foreach ($datas as $data) { $query = ' |