noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 06/12: Fix version for MONO


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 06/12: Fix version for MONO
Date: Fri, 16 Mar 2018 16:28:26 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 6dca18426bc32f36dd6e8a8a0d5c7bb3791bed6e
Author: Dany De Bontridder <address@hidden>
Date:   Thu Mar 15 12:08:35 2018 +0100

    Fix version for MONO
---
 html/user_login.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/html/user_login.php b/html/user_login.php
index 81e6b41..1f3aafb 100644
--- a/html/user_login.php
+++ b/html/user_login.php
@@ -73,7 +73,13 @@ if ( $ac->exist_table('version') == false)
 }
 
 /* check repo version */
-$version = $ac->get_value('select val from version');
+if (!defined("MULTI")||(defined("MULTI")&&MULTI==1))
+{
+    $version = $ac->get_value('select max(val) from version');
+} else {
+    $version = $ac->get_value('select max(val) from repo_version');
+    
+}
 if ( $version < DBVERSIONREPO )
 {
     echo '<h2 class="error" style="font-size:12px">'._("Votre base de données 
n'est pas à jour").'   ';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]