Signed-off-by: Roland Haeder <roland@mxchange.org>
// 1) Get notice object and set id
$notice = new Notice();
- $notice->id = $this->notice_id;
- $notice->scope = $this->scope;
+ $notice->id = $this->notice_id;
+
+ /* NOISY-DEBUG: */ common_debug('[' . __METHOD__ . ':' . __LINE__ . '] this->tag=' . $this->tag . ',this->notice_id=' . $this->notice_id . ' - Calling fetch() ...');
+
+ // Fetch notice
+ if (!$notice->fetch()) {
+ // No longer valid, so better don't allow to see it
+ return FALSE;
+ }
+
/* NOISY-DEBUG: */ common_debug('[' . __METHOD__ . ':' . __LINE__ . '] this->tag=' . $this->tag . ',notice->id=' . $notice->id . ',notice->scope=' . $notice->scope);
// Is it private scope?