noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 63/86: Bug : when only one extension, it fail


From: dwm
Subject: [Noalyss-commit] [noalyss] 63/86: Bug : when only one extension, it fails
Date: Thu, 19 Sep 2024 02:42:01 -0400 (EDT)

sparkyx pushed a commit to branch unstable
in repository noalyss.

commit 234119bb205d37904dccb18d0ed0b78203f828e3
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Sep 8 00:23:35 2024 +0200

    Bug : when only one extension, it fails
---
 include/class/extension.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class/extension.class.php 
b/include/class/extension.class.php
index e337fa9a8..9ce8ef532 100644
--- a/include/class/extension.class.php
+++ b/include/class/extension.class.php
@@ -450,7 +450,7 @@ class Extension extends Menu_Ref_sql
         $aExtension=\Extension::read_definition($xml_file);
         $extension=self::find_extension_code($aExtension, $plugin_code);
         if ( empty($plugin_code)) return -1;
-        return $extension->version;
+        return $extension->version??0;
     }
 
 



reply via email to

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