Skip to content

Commit

Permalink
Minor fixes to get Openclerk running on a new environment
Browse files Browse the repository at this point in the history
  • Loading branch information
soundasleep committed Sep 11, 2017
1 parent ac63136 commit 268c295
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -18,7 +18,7 @@
"openclerk/cache": "^0.1", "openclerk/cache": "^0.1",
"openclerk/coinbase": "^0.1", "openclerk/coinbase": "^0.1",
"openclerk/commodities": "^0.1", "openclerk/commodities": "^0.1",
"openclerk/config": "^0.1", "openclerk/config": "^0.1.1",
"openclerk/country-list": "~1.0", "openclerk/country-list": "~1.0",
"openclerk/currencies": "^0.1", "openclerk/currencies": "^0.1",
"openclerk/cryptocurrencies": "^0.1", "openclerk/cryptocurrencies": "^0.1",
Expand Down
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inc/crypto.php
Expand Up @@ -680,7 +680,7 @@ function account_data_grouped() {
'bitfunder' => array('table' => 'accounts_bitfunder', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true, 'disabled' => true), 'bitfunder' => array('table' => 'accounts_bitfunder', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true, 'disabled' => true),
'btcinve' => array('table' => 'accounts_btcinve', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true, 'disabled' => true), 'btcinve' => array('table' => 'accounts_btcinve', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true, 'disabled' => true),
'btct' => array('table' => 'accounts_btct', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true, 'disabled' => true), 'btct' => array('table' => 'accounts_btct', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true, 'disabled' => true),
'crypto-trade' => array('table' => 'accounts_cryptotrade', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true), 'crypto-trade' => array('table' => 'accounts_cryptotrade', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true, 'disabled' => true),
'cryptostocks' => array('table' => 'accounts_cryptostocks', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true), 'cryptostocks' => array('table' => 'accounts_cryptostocks', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true),
'havelock' => array('table' => 'accounts_havelock', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true), 'havelock' => array('table' => 'accounts_havelock', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true),
'litecoininvest' => array('table' => 'accounts_litecoininvest', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true), 'litecoininvest' => array('table' => 'accounts_litecoininvest', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true),
Expand Down
2 changes: 2 additions & 0 deletions inc/premium.php
Expand Up @@ -20,6 +20,8 @@ function user_limits_summary($user_id) {
foreach ($group as $key => $data) { foreach ($group as $key => $data) {
if (!isset($data['group'])) if (!isset($data['group']))
continue; continue;
if (isset($data['disabled']) && $data['disabled'])
continue;


$q = db()->prepare("SELECT COUNT(*) AS c FROM " . $data['table'] . " WHERE user_id=?" . ($data['failure'] ? " AND is_disabled=0" : "") . (isset($data['query']) ? $data['query'] : "")); $q = db()->prepare("SELECT COUNT(*) AS c FROM " . $data['table'] . " WHERE user_id=?" . ($data['failure'] ? " AND is_disabled=0" : "") . (isset($data['query']) ? $data['query'] : ""));
$q->execute(array($user_id)); $q->execute(array($user_id));
Expand Down

0 comments on commit 268c295

Please sign in to comment.