我得到这个错误代码,并不明白为什么。代码没有改变:
致命错误:无法在/ var / www / vhosts [...]中的写入上下文中使用函数返回值
代码:
if ($this->edit_mode) {
// Check if submission is genuine and not trying to change another 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 about to submit a form of inconsistent state.', self::textdomain)).'</p>'."\n";
return false;
}
// Preserve some of the existing data which is not exposed in the 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");
我无法弄清楚问题是什么! 我真的很感激一些帮助。谢谢伙计们!