mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 00:15:34 +00:00
- added 'global' statement in function
This commit is contained in:
parent
d7053bd642
commit
0258d905a5
|
@ -29,8 +29,7 @@ if ($user->getID() == $settings->_guestID) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get list of subscriptions for documents or folders for user or groups
|
// Get list of subscriptions for documents or folders for user or groups
|
||||||
function getNotificationList($as_group,$folders)
|
function getNotificationList($as_group, $folders) {
|
||||||
{
|
|
||||||
global $user,$db;
|
global $user,$db;
|
||||||
|
|
||||||
// First, get the list of groups of which the user is a member.
|
// First, get the list of groups of which the user is a member.
|
||||||
|
@ -66,8 +65,8 @@ function getNotificationList($as_group,$folders)
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
function printFolderNotificationList($ret,$deleteaction=true)
|
function printFolderNotificationList($ret,$deleteaction=true) {
|
||||||
{
|
global $dms;
|
||||||
if (count($ret)==0) {
|
if (count($ret)==0) {
|
||||||
printMLText("empty_notify_list");
|
printMLText("empty_notify_list");
|
||||||
}
|
}
|
||||||
|
@ -98,8 +97,9 @@ function printFolderNotificationList($ret,$deleteaction=true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function printDocumentNotificationList($ret,$deleteaction=true)
|
function printDocumentNotificationList($ret,$deleteaction=true) {
|
||||||
{
|
global $dms;
|
||||||
|
|
||||||
if (count($ret)==0) {
|
if (count($ret)==0) {
|
||||||
printMLText("empty_notify_list");
|
printMLText("empty_notify_list");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user