Skip to content

Commit

Permalink
FREEPBX-12210 uncomment + filter place in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinstrom authored and tm1000 committed May 3, 2016
1 parent fbca8c2 commit 9bf2e0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sources/source-Herold_Austria.module
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class Herold_Austria extends superfecta_base {
// Set the url we're searching for
$res_rul = "http://www.herold.mobi/telefonbuch/was_".$thenumber."/"; // url for searching residential listings
$bus_url = "http://www.herold.mobi/gelbe-seiten/was_".$thenumber."/"; // url for searching business listings
//Maybe uncomment this when you get the number from your trunk with leading +
//$thenumber=trim($thenumber,' ');
//$thenumber="00" . $thenumber;

if(strpos($thenumber, '+') === 0){
$thenumber=trim($thenumber,'+ ');
$thenumber="00" . $thenumber;
}
// regex patterns to search for
$regexp = array(
'~<a data-clickpos="name" href=".*?">(.+?)</a>~',
Expand Down

0 comments on commit 9bf2e0e

Please sign in to comment.