aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2013-09-08 00:21:42 +0200
committerChristian Vogeley <christian.vogeley@hotmail.de>2013-09-08 00:21:42 +0200
commit94fb9c240661a9cd2b7199a648e9c5b4f9b69e8d (patch)
tree2643bae10d797a9eed1d8849e3726e59a65ab03a /include/identity.php
parent02fe2d488155b0907c950eb3118c523940c6827f (diff)
downloadvolse-hubzilla-94fb9c240661a9cd2b7199a648e9c5b4f9b69e8d.tar.gz
volse-hubzilla-94fb9c240661a9cd2b7199a648e9c5b4f9b69e8d.tar.bz2
volse-hubzilla-94fb9c240661a9cd2b7199a648e9c5b4f9b69e8d.zip
Service class
identity, follow, photo upload, att upload
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php
index 8db6355c0..98209c8ae 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -7,7 +7,7 @@ require_once('include/crypto.php');
function identity_check_service_class($account_id) {
$ret = array('success' => false, $message => '');
- $r = q("select count(channel_id) as total from channel were channel_account_id = %d ",
+ $r = q("select count(channel_id) as total from channel where channel_account_id = %d ",
intval($account_id)
);
if(! ($r && count($r))) {
@@ -80,7 +80,10 @@ function create_identity($arr) {
$ret['message'] = t('No account identifier');
return $ret;
}
-
+ $ret=identity_check_service_class($arr['account_id']);
+ if (!$ret['success']) {
+ return $ret;
+ }
$nick = mb_strtolower(trim($arr['nickname']));
$name = escape_tags($arr['name']);
$pageflags = ((x($arr,'pageflags')) ? intval($arr['pageflags']) : PAGE_NORMAL);