xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit 35822bff104ba2133f29a0a69cff4603d990a721

state_get: Return empty if the state table does not exists
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-07-09 19:18
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-07-09 19:18
Parent(s): 8762f7dbfcec1f3ed5d6d7ba7dbf0ed547a894b7
Signing key:
Tree: cdb11debc64e37bee11a1791df075f34e241a479
File Lines added Lines deleted
inc/state.inc.php 6 1
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
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master