Skip to content

Commit

Permalink
status update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Sep 7, 2009
1 parent b46a09c commit 0acc7c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/omb/plugins/omb.php
Expand Up @@ -374,8 +374,10 @@ function wp_set_post_fields_after( &$model, &$rec ) {
$rec->set_value( 'parent_id',$_POST['parent_id']);
$rec->set_value( 'local',1);
} else {
$rec->set_value( 'parent_id',0);
$rec->set_value( 'local',0);
if (!isset($rec->attributes['parent_id']))
$rec->set_value( 'parent_id',0);
if (!isset($rec->attributes['local']))
$rec->set_value( 'local',0);
}
$rec->save_changes();
}
Expand Down

0 comments on commit 0acc7c0

Please sign in to comment.