Permalink
Browse files

Minor fixes to get Openclerk running on a new environment

  • Loading branch information...
soundasleep committed Sep 11, 2017
1 parent ac63136 commit 268c295b8fa3603dcbcf088b55bda95458b64cbf
Showing with 16 additions and 14 deletions.
  1. +1 −1 composer.json
  2. +12 −12 composer.lock
  3. +1 −1 inc/crypto.php
  4. +2 −0 inc/premium.php
View
@@ -18,7 +18,7 @@
"openclerk/cache": "^0.1",
"openclerk/coinbase": "^0.1",
"openclerk/commodities": "^0.1",
"openclerk/config": "^0.1",
"openclerk/config": "^0.1.1",
"openclerk/country-list": "~1.0",
"openclerk/currencies": "^0.1",
"openclerk/cryptocurrencies": "^0.1",
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -680,7 +680,7 @@ function account_data_grouped() {
'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),
'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),
'havelock' => array('table' => 'accounts_havelock', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true),
'litecoininvest' => array('table' => 'accounts_litecoininvest', 'group' => 'accounts', 'wizard' => 'securities', 'failure' => true),
View
@@ -20,6 +20,8 @@ function user_limits_summary($user_id) {
foreach ($group as $key => $data) {
if (!isset($data['group']))
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->execute(array($user_id));

0 comments on commit 268c295

Please sign in to comment.