1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 17:54:44 +02:00

Add PR #100 - Replace unnecessary in_array() call in /wire/core/admin.php

This commit is contained in:
mirzadabeer
2021-05-13 10:48:26 -04:00
committed by Ryan Cramer
parent 6004066bd5
commit 4d5950f5fe

View File

@@ -135,7 +135,7 @@ if($ajax) ob_start();
if($page->process && $page->process != 'ProcessPageView') {
try {
if($demo && !in_array($page->process, array('ProcessLogin'))) {
if($demo && $page->process != 'ProcessLogin') {
if(count($_POST)) $wire->error("Features that use POST variables are disabled in this demo");
foreach($_POST as $k => $v) unset($_POST[$k]);
foreach($_FILES as $k => $v) unset($_FILES[$k]);