mirror of
https://github.com/e107inc/e107.git
synced 2025-03-13 17:09:46 +01:00
PHP 7.1 Fixes
This commit is contained in:
parent
e05425fbb2
commit
851106707f
@ -68,7 +68,7 @@ function nextprev_shortcode($parm = '')
|
||||
* New parameter requirements formatted as a GET string.
|
||||
* Template support.
|
||||
*/
|
||||
if(strpos($parm, 'total=') !== false)
|
||||
if(is_string($parm) && strpos($parm, 'total=') !== false)
|
||||
{
|
||||
parse_str($parm, $parm);
|
||||
|
||||
@ -363,6 +363,10 @@ function nextprev_shortcode($parm = '')
|
||||
*/
|
||||
else
|
||||
{
|
||||
if(empty($parm))
|
||||
{
|
||||
$parm = '';
|
||||
}
|
||||
$parm_count = substr_count($parm, ',');
|
||||
while($parm_count < 5)
|
||||
{
|
||||
|
@ -245,7 +245,9 @@ class e_tohtml_linkwords
|
||||
|
||||
// Consider next line - stripos is PHP5, and mb_stripos is PHP >= 5.2 - so may well often require handling
|
||||
// while (($first < $limit) && (stripos($text,$this->word_list[$first]) === FALSE)) { $first++; }; // *utf (stripos is PHP5 - compatibility handler implements)
|
||||
while (($first < $limit) && (strpos($tp->ustrtolower($text), $this->word_list[$first]) === false))
|
||||
$needle = $this->word_list[$first];
|
||||
|
||||
while (($first < $limit) && (strpos($tp->ustrtolower($text), $needle) === false))
|
||||
{
|
||||
$first++;
|
||||
} // *utf
|
||||
|
Loading…
x
Reference in New Issue
Block a user