mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +02:00
Add PR #100 - Replace unnecessary in_array() call in /wire/core/admin.php
This commit is contained in:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user