@@ 45-60 (lines=16) @@ | ||
42 | * |
|
43 | */ |
|
44 | ||
45 | public function inspected() |
|
46 | { |
|
47 | global $xoopsDB; |
|
48 | $sql = 'SELECT userid FROM ' . $xoopsDB->prefix('smallworld_admin') . ' WHERE (inspect_start+inspect_stop) > ' . time() . ''; |
|
49 | $result = $xoopsDB->queryF($sql); |
|
50 | $data = []; |
|
51 | while ($row = $xoopsDB->fetchArray($result)) { |
|
52 | $data[] = $row; |
|
53 | } |
|
54 | if (!empty($data)) { |
|
55 | $sub = implode(',', Smallworld_array_flatten(array_unique($data), 0)); |
|
56 | } else { |
|
57 | $sub = 0; |
|
58 | } |
|
59 | return $sub; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @Get array of updates |
@@ 45-60 (lines=16) @@ | ||
42 | * |
|
43 | */ |
|
44 | ||
45 | public function inspected() |
|
46 | { |
|
47 | global $xoopsDB; |
|
48 | $sql = 'SELECT userid FROM ' . $xoopsDB->prefix('smallworld_admin') . ' WHERE (inspect_start+inspect_stop) > ' . time() . ''; |
|
49 | $result = $xoopsDB->queryF($sql); |
|
50 | $data = []; |
|
51 | while ($row = $xoopsDB->fetchArray($result)) { |
|
52 | $data[] = $row; |
|
53 | } |
|
54 | if (!empty($data)) { |
|
55 | $sub = implode(',', Smallworld_array_flatten(array_unique($data), 0)); |
|
56 | } else { |
|
57 | $sub = 0; |
|
58 | } |
|
59 | return $sub; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @Get array of updates |