mirror of
https://github.com/friendica/friendica
synced 2025-04-25 01:50:11 +00:00
Mostly some checks in order to avoid Notices; 1 real bugfix in /mod/network.php
This commit is contained in:
parent
3d249f0edd
commit
5bb8ed4b8b
4 changed files with 19 additions and 11 deletions
|
@ -92,8 +92,13 @@
|
|||
*/
|
||||
private function _replcb_for($args){
|
||||
$m = array_map('trim', explode(" as ", $args[2]));
|
||||
list($keyname, $varname) = explode("=>",$m[1]);
|
||||
if (is_null($varname)) { $varname=$keyname; $keyname=""; }
|
||||
$x = explode("=>",$m[1]);
|
||||
if (count($x) == 1) {
|
||||
$varname = $x[0];
|
||||
$keyname = "";
|
||||
} else {
|
||||
list($keyname, $varname) = $x;
|
||||
}
|
||||
if ($m[0]=="" || $varname=="" || is_null($varname)) die("template error: 'for ".$m[0]." as ".$varname."'") ;
|
||||
//$vals = $this->r[$m[0]];
|
||||
$vals = $this->_get_var($m[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue