wordpress - Fatal error: Can't use function return value in PHP Code -
im getting error code, , can't understand why. code hasn't been changed:
fatal error: can't use function return value in write context in /var/www/vhosts[...]
code:
if ($this->edit_mode) { // check if submission genuine , not trying change entry $id = $form_data['id']; if (!is_numeric($id) || !isset($submissions[$id]) || $submissions[$id]['hash'] != $form_data['hash']) { echo '<p class="attention">'.sprintf(__('you have been submit form of inconsistent state.', self::textdomain)).'</p>'."\n"; return false; } // preserve of existing data not exposed in edit form if (isset($submissions[$id]['note'])) $form_data['note'] = $submissions[$id]['note']; $form_data['paid'] = $submissions[$id]['paid']; $form_data['date'] = $submissions[$id]['date']; $form_data['edit_date'] = date("y-m-d h:i:s");
i can't figure out problem is! appreciate help. guys!
Comments
Post a Comment