changes($_REQUEST['newStorage']); if (count($changes)) { if ($storage->save($changes)) { ZM\AuditAction(($_REQUEST['id'] ? 'update' : 'create'), 'storage', $storage->Id(), 'Changed: '.implode(', ', array_keys($changes))); } else { $error_message .= $storage->get_last_error(); } // end if successful save } // there is no view=storage, so need to redirect somewhere useful $redirect = '?view=options&tab=storage'; $refreshParent = true; } else { ZM\Error("Unknown action $action in saving Storage"); } ?>