1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

A couple of minor fixes

This commit is contained in:
Ryan Cramer
2023-11-03 12:30:03 -04:00
parent e172dd011b
commit 3cbae7da97
2 changed files with 1 additions and 3 deletions

View File

@@ -1038,7 +1038,6 @@ class MarkupQA extends Wire {
$path = null;
if($this->isPagePathHooked()) {
$this->warning("page path is hooked");
$page = $pages->get($pageID);
if($page->id) {
if($language && $language->id) {

View File

@@ -95,7 +95,7 @@ function _checkForTwoFactorAuth(Session $session) {
*/
function _checkForMaxInputVars(WireInput $input) {
$max = (int) ini_get('max_input_vars');
if($max && count($_POST) >= $max) {
if($max && count($_POST, COUNT_RECURSIVE) >= $max) {
$input->error(sprintf(__('You have reached PHPs “max_input_vars” setting of %d — please increase it.'), $max));
}
}
@@ -238,4 +238,3 @@ if($controller && $controller->isAjax()) {
$session->removeNotices();
if($content) {} // ignore
}