undefined index on preview
Bug #566226 reported by
EdB
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quam Plures |
Fix Released
|
Medium
|
Tilman Blumenbach |
Bug Description
When previewing a post, either saved or unsaved, an error is generated above the post text. See http://
Notice: Undefined index: 0 in /path/inc/
Warning: Invalid argument supplied for foreach() in /path/inc/
Categories:
Related branches
lp:~quam-plures-core/quam-plures/bug-566226.tblue
- EdB: Approve
-
Diff: 217 lines (+51/-116)3 files modifiedinc/_core/_template.funcs.php (+1/-1)
inc/items/model/_itemlist.class.php (+50/-114)
inc/items/views/_item_expert.form.php (+0/-1)
Changed in quam-plures: | |
status: | New → Fix Committed |
Changed in quam-plures: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
inc/items/ model/_ itemlight. class approx 155, adding the new bit seems to cure this
<code> >extra_ cat_IDs = array( $db_row- >post_main_ cat_ID );
if( $db_row == NULL )
{ // New item:
$this->ID = 0;
$this->set( 'issue_date', date('Y-m-d H:i:s', $localtimenow) );
}
else
{
if( !( $this->ID = $db_row->$dbIDname ) )
{ // preview mode bugfix
$this-
}
</code>
¥