Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 2993fb3

Browse files
PHP 7 compatibility
Trying to access private pagi variable is not possible. So added a setter for this.
1 parent d44e9e5 commit 2993fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpagi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ function say_punctuation($text, $escape_digits='', $frequency=8000)
15501550
function &new_AsteriskManager()
15511551
{
15521552
$this->asm = new AGI_AsteriskManager(NULL, $this->config);
1553-
$this->asm->pagi =& $this;
1553+
$this->asm->setPagi($this);
15541554
$this->config =& $this->asm->config;
15551555
return $this->asm;
15561556
}

0 commit comments

Comments
 (0)