Show
Ignore:
Timestamp:
06/20/07 19:03:28 (6 years ago)
Author:
p_lindheimer
Message:

#2002: IF() statement can't handle : in the string and can't escape them anyhow

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/findmefollow/functions.inc.php

    r4089 r4098  
    9393          // 
    9494          if ((isset($dring) ? $dring : '') != '') { 
    95             $ext->add($contextname, $grpnum, '', new ext_setvar("__ALERT_INFO", '${IF($["x${ALERT_INFO}"="x"]?'.str_replace(';', '\;', $dring).':${ALERT_INFO})}')); 
     95            // If ALERTINFO is set, then skip to the next set command. This was modified to two lines because the previous 
     96            // IF() couldn't handle ':' as part of the string. The jump to PRIORITY+2 allows for now destination label 
     97            // which is needed in the 2.3 version. 
     98            $ext->add($contextname, $grpnum, '', new ext_gotoif('$["x${ALERT_INFO}"!="x"]','$[${PRIORITY}+2])}')); 
     99            $ext->add($contextname, $grpnum, '', new ext_setvar("__ALERT_INFO", str_replace(';', '\;', $dring) )); 
    96100          } 
    97101          // If pre_ring is set, then ring this number of seconds prior to moving on 
  • modules/branches/2.2/findmefollow/module.xml

    r4091 r4098  
    22  <rawname>findmefollow</rawname> 
    33  <name>Follow Me</name> 
    4   <version>2.4.10</version> 
     4  <version>2.4.10.1</version> 
    55  <changelog> 
     6    *2.4.10.1* #2002 IF() statement can't handle : in the string and can't escape them anyhow 
    67    *2.4.10* Fixed bug where nested CID prefixes ends up removing part of the valid CID info 
    78    *2.4.9.1* Fixed ALERT_INFO bug, if previously set it should not set - it was clearing it