Skip to content

Commit

Permalink
logic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Isidor Zeuner committed May 13, 2016
1 parent 88e7a7e commit 851da12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HetznerSMSGate.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function init()
public function send($to, $message)
{

$components = static::split_to($to);
$components = $this->split_to($to);

require_once('sms.php');

Expand Down Expand Up @@ -312,7 +312,7 @@ public function send($to, $message)
* @param $to
* @return mixed
*/
protected static function split_to($to)
protected function split_to($to)
{
for (
$length = 2;
Expand All @@ -322,7 +322,7 @@ protected static function split_to($to)
$tried = substr(
$to,
0,
$length
$length++
);
if (
isset(
Expand Down

0 comments on commit 851da12

Please sign in to comment.