Notice title constructor doesn't check class of Notice

This commit is contained in:
Evan Prodromou 2010-08-14 18:02:08 -07:00
parent 7df78c7c6a
commit c1cab9bfb8

View File

@ -126,7 +126,7 @@ class Notice_title extends Memcached_DataObject
* @return string title of the notice, or null if none * @return string title of the notice, or null if none
*/ */
static function fromNotice(Notice $notice) static function fromNotice($notice)
{ {
$nt = Notice_title::staticGet('notice_id', $notice->id); $nt = Notice_title::staticGet('notice_id', $notice->id);
if (empty($nt)) { if (empty($nt)) {