Replaces count calls with semantically correct empty calls
authorMatthias Schmidt <gravatronics@live.com>
Fri, 2 Nov 2012 06:51:40 +0000 (07:51 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 2 Nov 2012 06:51:40 +0000 (07:51 +0100)
files/lib/acp/form/LanguageMultilingualismForm.class.php
files/lib/acp/form/LanguageServerEditForm.class.php

index 149301f1978ffd65419575b5ca3efbc4f24248c6..1988df9669a9c91e557e574826c14eeecd5666f9 100644 (file)
@@ -103,7 +103,7 @@ class LanguageMultilingualismForm extends ACPForm {
        public function readData() {
                parent::readData();
                
-               if (!count($_POST)) {
+               if (empty($_POST)) {
                        // default values
                        $contentLanguages = 0;
                        foreach ($this->languages as $languageID => $language) {
index d3463055fce9a27bdd1e6b4007e6a6adc3cc90e4..2ce70e27d275b8fcc71941a7123dab9ea2d241e4 100644 (file)
@@ -80,7 +80,7 @@ class LanguageServerEditForm extends LanguageServerAddForm {
        public function readData() {
                parent::readData();
                
-               if (!count($_POST)) {
+               if (empty($_POST)) {
                        $this->server = $this->languageServer->serverURL;
                }
        }