| File inc/state.inc.php changed (mode: 100644) (index a1dfe6a..343f4e6) |
| ... |
... |
function rg_state_error() |
| 23 |
23 |
|
|
| 24 |
24 |
/* |
/* |
| 25 |
25 |
* Get state |
* Get state |
|
26 |
|
* Returns FALSE on error |
| 26 |
27 |
*/ |
*/ |
| 27 |
28 |
function rg_state_get($db, $var) |
function rg_state_get($db, $var) |
| 28 |
29 |
{ |
{ |
| |
| ... |
... |
function rg_state_get($db, $var) |
| 48 |
49 |
if ($r === FALSE) { |
if ($r === FALSE) { |
| 49 |
50 |
// Let's see if the 'state' table is present |
// Let's see if the 'state' table is present |
| 50 |
51 |
$r = rg_sql_rel_exists($db, 'state'); |
$r = rg_sql_rel_exists($db, 'state'); |
| 51 |
|
if (($r === FALSE) || ($r === 0)) { |
|
|
52 |
|
if ($r === FALSE) { |
| 52 |
53 |
$ret = FALSE; |
$ret = FALSE; |
| 53 |
54 |
break; |
break; |
| 54 |
55 |
} |
} |
|
56 |
|
if ($r === 0) { |
|
57 |
|
$ret = ''; |
|
58 |
|
break; |
|
59 |
|
} |
| 55 |
60 |
rg_cache_set($k, 1, RG_SOCKET_NO_WAIT); |
rg_cache_set($k, 1, RG_SOCKET_NO_WAIT); |
| 56 |
61 |
} |
} |
| 57 |
62 |
|
|