debug_report_bug() call added
authorRoland Häder <roland@mxchange.org>
Wed, 11 Mar 2009 18:00:14 +0000 (18:00 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 11 Mar 2009 18:00:14 +0000 (18:00 +0000)
inc/extensions.php

index d21e3b4..11cf83c 100644 (file)
@@ -434,6 +434,12 @@ function GET_EXT_VERSION ($ext_name) {
        // By default no extension is found
        $ext_ver = false;
 
+       // Empty extension name should be fixed!
+       if (empty($ext_name)) {
+               // Please report this bug!
+               debug_report_bug(__FUNCTION__.": ext_name is empty which is not allowed here.");
+       } // END - if
+
        // Extensions are all inactive during installation
        if ((!isInstalled()) || (isInstalling())) return "";
        //* DEBUG: */ DEBUG_LOG(__FUNCTION__, __LINE__, ": ext_name={$ext_name}");