Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -268,7 +268,7 @@ abstract class _AdminNotification extends \IPS\Patterns\ActiveRecord
|
||||
* @param string|null $extra Any additional information
|
||||
* @return void
|
||||
*/
|
||||
protected static function find( $app, $extension, $extra = NULL )
|
||||
public static function find( $app, $extension, $extra = NULL )
|
||||
{
|
||||
foreach ( static::allNotifications() as $notification )
|
||||
{
|
||||
@@ -665,8 +665,16 @@ abstract class _AdminNotification extends \IPS\Patterns\ActiveRecord
|
||||
'time' => time()
|
||||
), TRUE );
|
||||
|
||||
$notificationCache = \IPS\Data\Store::i()->acpNotificationIds;
|
||||
unset( $notificationCache[ $member->member_id ] );
|
||||
\IPS\Data\Store::i()->acpNotificationIds = $notificationCache;
|
||||
if( isset( \IPS\Data\Store::i()->acpNotificationIds ) )
|
||||
{
|
||||
$notificationCache = \IPS\Data\Store::i()->acpNotificationIds;
|
||||
|
||||
if( isset( $notificationCache[ $member->member_id ] ) )
|
||||
{
|
||||
unset( $notificationCache[ $member->member_id ] );
|
||||
}
|
||||
|
||||
\IPS\Data\Store::i()->acpNotificationIds = $notificationCache;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user