added spaces + some curly braces + some usage of dbm::is_result()

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder
2017-01-26 15:23:30 +01:00
committed by Roland Haeder
parent 720e7d6034
commit 0cd241bcbe
92 changed files with 1190 additions and 1087 deletions

View File

@@ -158,7 +158,7 @@ function nodeinfo_cron() {
$plugins = get_config("system","addon");
$plugins_arr = array();
if($plugins) {
if ($plugins) {
$plugins_arr = explode(",",str_replace(" ", "",$plugins));
$idx = array_search($plugin, $plugins_arr);
@@ -175,10 +175,10 @@ function nodeinfo_cron() {
$last = get_config('nodeinfo','last_calucation');
if($last) {
if ($last) {
// Calculate every 24 hours
$next = $last + (24 * 60 * 60);
if($next > time()) {
if ($next > time()) {
logger("calculation intervall not reached");
return;
}