@@ 71-73 (lines=3) @@ | ||
68 | case 'friends': |
|
69 | $sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('smallworld_friends') . " WHERE me = '" . $id . "' AND status = " . Constants::FRIEND_STATUS_APPROVED; |
|
70 | break; |
|
71 | case 'following': |
|
72 | $sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('smallworld_followers') . " WHERE me = '" . $id . "'"; |
|
73 | break; |
|
74 | case 'followingme': |
|
75 | $sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('smallworld_followers') . " WHERE you = '" . $id . "'"; |
|
76 | break; |
|
@@ 74-76 (lines=3) @@ | ||
71 | case 'following': |
|
72 | $sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('smallworld_followers') . " WHERE me = '" . $id . "'"; |
|
73 | break; |
|
74 | case 'followingme': |
|
75 | $sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('smallworld_followers') . " WHERE you = '" . $id . "'"; |
|
76 | break; |
|
77 | default: |
|
78 | return $data; |
|
79 | } |