main/inc/local.inc.php 1 location
|
@@ 1036-1040 (lines=5) @@
|
| 1033 |
|
$sql = "SELECT * FROM $group_table |
| 1034 |
|
WHERE c_id = ".$_course['real_id']." AND id = '$gidReq'"; |
| 1035 |
|
$result = Database::query($sql); |
| 1036 |
|
if (Database::num_rows($result) > 0) { // This group has recorded status related to this course |
| 1037 |
|
$gpData = Database::fetch_array($result); |
| 1038 |
|
$_gid = $gpData ['id']; |
| 1039 |
|
Session::write('_gid', $_gid); |
| 1040 |
|
} |
| 1041 |
|
} |
| 1042 |
|
} |
| 1043 |
|
} |
main/forum/forumfunction.inc.php 1 location
|
@@ 5266-5269 (lines=4) @@
|
| 5263 |
|
poster_id = ".intval($user_id)." AND visible = 1 "; |
| 5264 |
|
$result = Database::query($sql); |
| 5265 |
|
$count = 0; |
| 5266 |
|
if (Database::num_rows($result) > 0) { |
| 5267 |
|
$count = Database::fetch_array($result); |
| 5268 |
|
$count = $count['count']; |
| 5269 |
|
} |
| 5270 |
|
|
| 5271 |
|
return $count; |
| 5272 |
|
} |