Silence PHP warnings for system (eg p2000) notifications.
throw new Exception("Gebruiker niet gevonden in $dir");
}
$this->dir = $dir;
throw new Exception("Gebruiker niet gevonden in $dir");
}
$this->dir = $dir;
- $this->login = basename($dir);
+ $this->login = preg_replace('{.*/}', '', $dir);
$group = NULL;
while ($row = $query->fetch()) {
$group = NULL;
while ($row = $query->fetch()) {
- $rowuser = new User("profile/{$row->author}");
if ($group !== $row->issue) {
$group = $row->issue;
print '<dt>';
if ($group !== $row->issue) {
$group = $row->issue;
print '<dt>';
print '</dt>';
}
print '<dd>';
print '</dt>';
}
print '<dd>';
- printf('<strong>%s</strong> <small class="date">%s</small>',
- $rowuser->html, showdate(preg_split('/\D/', $row->created))
+ if ($row->author and $rowuser = new User("profile/{$row->author}")) {
+ printf('<strong>%s</strong> ', $rowuser->html);
+ }
+ printf('<small class="date">%s</small>',
+ showdate(preg_split('/\D/', $row->created))
);
printf("\n\t<blockquote>%s</blockquote>", $row->message);
print "</dd>\n";
);
printf("\n\t<blockquote>%s</blockquote>", $row->message);
print "</dd>\n";