$countErrors++; $dispError .= " <b>·</b> You must enter a valid image width when using an external image.<br>"; } // Check image height if ($_FILES['catimagefile']['name'] == "" and trim($_POST['catimageurl']) != "" and $_POST['useimage'] == "1" and (trim($_POST['catimageheight']) == "" or $_POST['catimageheight'] <= 0)) { $countErrors++; $dispError .= " <b>·</b> You must enter a valid image height when using an external image.<br>"; } // Check Order $rankCatObj = new RankCategory($mysqli); if ($_POST['catorder'] != "first") { if (!$rankCatObj->select($_POST['catorder'])) { $countErrors++; $dispError .= " <b>·</b> You have selected an invalid category order (category).<br>"; } else { $intNewCatOrderNum = $rankCatObj->makeRoom($_POST['beforeafter']); if ($intNewCatOrderNum == "false") { $countErrors++; $dispError .= " <b>·</b> You have selected an invalid category order (category).<br>"; } } } else { $result = $mysqli->query("SELECT * FROM " . $dbprefix . "rankcategory ORDER BY ordernum"); if ($result->num_rows > 0) { $countErrors++; $dispError .= " <b>·</b> You have selected an invalid category order (category).<br>"; } else { $intNewCatOrderNum = 1; } } $strCatImageURL = "";