Skip to content

Commit

Permalink
Dev: Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 5, 2016
1 parent 29741d6 commit 243fc8d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions application/helpers/qanda_helper.php
Expand Up @@ -382,7 +382,6 @@ function retrieveAnswers($ia)
// END <EMBED> work-around step 1
while ($c > 0) // This recursively strips any empty tags to minimise rendering bugs.
{
$matches = 0;
$oldtitle=$qtitle_custom;
$qtitle_custom = preg_replace( '/<([^ >]+)[^>]*>[\r\n\t ]*<\/\1>[\r\n\t ]*/isU' , '' , $qtitle_custom , -1); // I removed the $count param because it is PHP 5.1 only.

Expand All @@ -393,7 +392,6 @@ function retrieveAnswers($ia)
// END <EMBED> work-around step 2
while ($c > 0) // This recursively strips any empty tags to minimise rendering bugs.
{
$matches = 0;
$oldtitle=$qtitle_custom;
$qtitle_custom = preg_replace( '/(<br(?: ?\/)?>(?:&nbsp;|\r\n|\n\r|\r|\n| )*)+$/i' , '' , $qtitle_custom , -1 ); // I removed the $count param because it is PHP 5.1 only.
$c = ($qtitle_custom!=$oldtitle)?1:0;
Expand Down

0 comments on commit 243fc8d

Please sign in to comment.