]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Fix for 'array-to-string-conversion' bug in request-functions.php
[mailer.git] / inc / functions.php
index dcdfdc6ea03845940ec3fa110573bb0b6d0564b3..7d3046be596c4891d1aa95c5900c0904d5925379 100644 (file)
@@ -47,8 +47,8 @@ function IS_INC_WRITEABLE ($inc) {
                return false;
        } // END - if
 
-       // Test write-access
-       return is_writeable($FQFN);
+       // Test write-access on directory
+       return is_writeable(dirname($FQFN));
 }
 
 // Output HTML code directly or "render" it. You addionally switch the new-line character off
@@ -2695,7 +2695,7 @@ function GENERATE_AID_LINK ($aid) {
        $admin = "<span class=\"admin_note\">{--ADMIN_NO_ADMIN_ASSIGNED--}</span>";
 
        // Zero? = Not assigned
-       if ($aid == "0") {
+       if ($aid > 0) {
                // Load admin's login
                $login = GET_ADMIN_LOGIN($aid);
                if ($login != "***") {