mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Merge branch 'rewrites/dbm_is_result' into develop
This commit is contained in:
commit
dac1dbd3e9
11 changed files with 20 additions and 19 deletions
|
@ -92,7 +92,7 @@ function profiles_init(&$a) {
|
|||
intval(local_user()),
|
||||
intval($a->argv[2])
|
||||
);
|
||||
if(! count($r1)) {
|
||||
if(! dbm::is_result($r1)) {
|
||||
notice( t('Profile unavailable to clone.') . EOL);
|
||||
killme();
|
||||
return;
|
||||
|
@ -116,7 +116,7 @@ function profiles_init(&$a) {
|
|||
dbesc($name)
|
||||
);
|
||||
info( t('New profile created.') . EOL);
|
||||
if(count($r3) == 1)
|
||||
if ((dbm::is_result($r3)) && (count($r3) == 1))
|
||||
goaway('profiles/'.$r3[0]['id']);
|
||||
|
||||
goaway('profiles');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue