mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 11:36:08 +02:00
PHP 7.1 Fixes
This commit is contained in:
@@ -68,7 +68,7 @@ function nextprev_shortcode($parm = '')
|
|||||||
* New parameter requirements formatted as a GET string.
|
* New parameter requirements formatted as a GET string.
|
||||||
* Template support.
|
* Template support.
|
||||||
*/
|
*/
|
||||||
if(strpos($parm, 'total=') !== false)
|
if(is_string($parm) && strpos($parm, 'total=') !== false)
|
||||||
{
|
{
|
||||||
parse_str($parm, $parm);
|
parse_str($parm, $parm);
|
||||||
|
|
||||||
@@ -363,6 +363,10 @@ function nextprev_shortcode($parm = '')
|
|||||||
*/
|
*/
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if(empty($parm))
|
||||||
|
{
|
||||||
|
$parm = '';
|
||||||
|
}
|
||||||
$parm_count = substr_count($parm, ',');
|
$parm_count = substr_count($parm, ',');
|
||||||
while($parm_count < 5)
|
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
|
// 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) && (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++;
|
$first++;
|
||||||
} // *utf
|
} // *utf
|
||||||
|
Reference in New Issue
Block a user