mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
Merge branch 'seeddms-5.0.x' into seeddms-5.1.x
This commit is contained in:
commit
c785906ffb
|
@ -1389,7 +1389,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
||||||
//
|
//
|
||||||
$queryStr = "SELECT * FROM `tblNotify` WHERE `tblNotify`.`target` = '".$this->_id."' ".
|
$queryStr = "SELECT * FROM `tblNotify` WHERE `tblNotify`.`target` = '".$this->_id."' ".
|
||||||
"AND `tblNotify`.`targetType` = '".T_FOLDER."' ".
|
"AND `tblNotify`.`targetType` = '".T_FOLDER."' ".
|
||||||
"AND `tblNotify`.`".$userOrGroup."` = '". (int) $userOrGroupID."'";
|
"AND `tblNotify`.".$userOrGroup." = '". (int) $userOrGroupID."'";
|
||||||
$resArr = $db->getResultArray($queryStr);
|
$resArr = $db->getResultArray($queryStr);
|
||||||
if (is_bool($resArr)) {
|
if (is_bool($resArr)) {
|
||||||
return -4;
|
return -4;
|
||||||
|
@ -1430,7 +1430,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$userOrGroup = ($isUser) ? "userID" : "groupID";
|
$userOrGroup = ($isUser) ? "`userID`" : "`groupID`";
|
||||||
|
|
||||||
/* Verify that the requesting user has permission to add the target to
|
/* Verify that the requesting user has permission to add the target to
|
||||||
* the notification system.
|
* the notification system.
|
||||||
|
@ -1463,7 +1463,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
||||||
//
|
//
|
||||||
$queryStr = "SELECT * FROM `tblNotify` WHERE `tblNotify`.`target` = '".$this->_id."' ".
|
$queryStr = "SELECT * FROM `tblNotify` WHERE `tblNotify`.`target` = '".$this->_id."' ".
|
||||||
"AND `tblNotify`.`targetType` = '".T_FOLDER."' ".
|
"AND `tblNotify`.`targetType` = '".T_FOLDER."' ".
|
||||||
"AND `tblNotify`.`".$userOrGroup."` = '". (int) $userOrGroupID."'";
|
"AND `tblNotify`.".$userOrGroup." = '". (int) $userOrGroupID."'";
|
||||||
$resArr = $db->getResultArray($queryStr);
|
$resArr = $db->getResultArray($queryStr);
|
||||||
if (is_bool($resArr)) {
|
if (is_bool($resArr)) {
|
||||||
return -4;
|
return -4;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user