noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 45/65: database upgrade : if empty, skipped


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 45/65: database upgrade : if empty, skipped
Date: Wed, 09 Sep 2015 08:27:26 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 709141e14352c1cb8e3b8565d38937647f1790bf
Author: Dany De Bontridder <address@hidden>
Date:   Sun Sep 6 06:04:44 2015 +0200

    database upgrade : if empty, skipped
---
 include/class_database.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/class_database.php b/include/class_database.php
index 30d8548..9b87e70 100644
--- a/include/class_database.php
+++ b/include/class_database.php
@@ -404,6 +404,10 @@ class Database
 
     function apply_patch($p_name, $from_setup=1)
     {
+        if ( ! $this->exist_table('version')) {
+            echo _('Base de donnée vide');
+            return;
+        }
         $MaxVersion=DBVERSION-1;
         $succeed="<span style=\"font-size:18px;color:green\">&#x2713;</span>";
         echo '<ul style="list-type-style:square">';



reply via email to

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