Quote
Server software Linux Centos 7
Webserver software Apache/2
PHP version 7.2.17
PHP interface fpm-fcgi
MySQL Server version 5.5.41-MariaDB
PHPFusion version 8.00.22
Error Date Status
public_html/search.php
count(): Parameter must be an array or an object that implements Countable Line: 230
Take a look into the file vriendschap.net/public_html/search.php
Details
Error: count(): Parameter must be an array or an object that implements Countable Line: 230
File: vriendschap.net/public_html/search.php On Page: /search.php
Date: april 19 2019 22:54:39 Status:
Source code (Line: 220 - 240)
220 $c_swords = count($swords); //sizeof($swords)
221 for ($i = 0; $i < $c_swords; $i++) {
222 $count += substr_count(strtolower($text), strtolower($swords[$i]));
223 }
224 return $count;
225 }
226
227 function search_querylike($field) {
228 global $swords;
229 $querylike = "";
230 $c_swords = count($swords); //sizeof($swords)
231 for ($i = 0; $i < $c_swords; $i++) {
232 $querylike .= $field." LIKE '%".$swords[$i]."%'".($i < $c_swords - 1 ? " ".$_REQUEST['method']." " : "");
233 }
234 return $querylike;
235 }
236
237 function search_fieldsvar() {
238 $fieldsvar = "(";
239 $numargs = func_num_args();
240
$c_swords = count($swords); //sizeof($swords)
$c_swords = count((array)$swords); //sizeof($swords)
$c_swords = !empty($swords); //sizeof($swords)
Category Forum
Suspected Bugs and Errors - 8Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions