aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_plugins.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-01-09 21:22:13 +0000
committermistic100 <mistic@piwigo.org>2014-01-09 21:22:13 +0000
commit4f91b4b9b08146fee8a0fdb33815c09597cb4d55 (patch)
tree637288b62ef0aa3efc53df15d58db601c6ea6626 /include/functions_plugins.inc.php
parentc41bdbeb87a79966c0c1601660af757e014fd62a (diff)
use custom safe_version_compare instead of version_compare to handle versions numbers with letters
git-svn-id: http://piwigo.org/svn/trunk@26591 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_plugins.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_plugins.inc.php b/include/functions_plugins.inc.php
index 035a0bea8..d71f58491 100644
--- a/include/functions_plugins.inc.php
+++ b/include/functions_plugins.inc.php
@@ -78,7 +78,7 @@ abstract class PluginMaintain
$current_version = $pwg_loaded_plugins[$this->plugin_id]['version'];
if ( $version == 'auto' or $current_version == 'auto'
- or version_compare($current_version, $version, '<')
+ or safe_version_compare($current_version, $version, '<')
)
{
if (!empty($on_update))
@@ -144,7 +144,7 @@ SELECT version
list($current_version) = pwg_db_fetch_row(pwg_query($query));
if ( $version == 'auto' or $current_version == 'auto'
- or version_compare($current_version, $version, '<')
+ or safe_version_compare($current_version, $version, '<')
)
{
if (!empty($on_update))