Index: branches/5.2.x/units/posts/post_eh.php =================================================================== diff -u -N -r14985 -r15008 --- branches/5.2.x/units/posts/post_eh.php (.../post_eh.php) (revision 14985) +++ branches/5.2.x/units/posts/post_eh.php (.../post_eh.php) (revision 15008) @@ -1,6 +1,6 @@ SetDBField('IPAddress', $_SERVER['REMOTE_ADDR']); $sql = 'SELECT Username - FROM ' . TABLE_PREFIX . 'PortalUser + FROM ' . TABLE_PREFIX . 'Users WHERE PortalUserId = ' . $user_id; $object->SetDBField('PosterAlias', $this->Conn->GetOne($sql)); @@ -340,7 +340,7 @@ $post_helper->updatePostCount($topic_id, -1); // update post owner posts counter - $sql = 'UPDATE '.TABLE_PREFIX.'PersistantSessionData + $sql = 'UPDATE '.TABLE_PREFIX.'UserPersistentSessionData SET VariableValue = IF (VariableValue > 0, VariableValue - 1, 0) WHERE (PortalUserId = '.$object->GetDBField('CreatedById').') AND (VariableName = "bb_posts")'; $this->Conn->Query($sql);