Some rewrites:
- max_proccesses_reach() and maxload_reached() (why no _ behind max?) are called both way, static and with object reference. - this is strongly discouraged and should be avoided as its support (in PHP) may be dropped in future releases. - used $a = get_app(); to encapsulate code (even when the function does currently the same, it may be changed later) Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
+1
-1
@@ -232,7 +232,7 @@ class Probe {
|
||||
if ($data["photo"] != "")
|
||||
$data["baseurl"] = matching_url(normalise_link($data["baseurl"]), normalise_link($data["photo"]));
|
||||
else
|
||||
$data["photo"] = App::get_baseurl().'/images/person-175.jpg';
|
||||
$data["photo"] = $a->get_baseurl().'/images/person-175.jpg';
|
||||
|
||||
if (!isset($data["name"]) OR ($data["name"] == "")) {
|
||||
if (isset($data["nick"]))
|
||||
|
||||
Reference in New Issue
Block a user