]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Missing language strings
[mailer.git] / inc / wrapper-functions.php
index 9d61c0cf94b87eff600170d7aa895944e83ddc34..26187489f3450b0c4264429c305456d912a4af33 100644 (file)
@@ -752,6 +752,10 @@ function setCurrentUserId ($userid) {
 
 // Getter for current userid
 function getCurrentUserId () {
+       // Return zero if not set
+       if (!isset($GLOBALS['current_userid'])) return 0;
+
+       // Return the userid
        return $GLOBALS['current_userid'];
 }