aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/group.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-03 13:09:42 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-03 13:09:42 +0000
commit004a0c8a75e8fb71b8ba0c47f000c381c03a2967 (patch)
treeff34fa6b50a89713b20ac46c0fa672428c533a97 /engine/lib/group.php
parent05ffc437ef95e84e0438c5b0230b261179b47cca (diff)
downloadelgg-004a0c8a75e8fb71b8ba0c47f000c381c03a2967.tar.gz
elgg-004a0c8a75e8fb71b8ba0c47f000c381c03a2967.tar.bz2
Minor tweaks 'cos case does matter...
git-svn-id: https://code.elgg.org/elgg/trunk@2379 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r--engine/lib/group.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php
index 02aefbe1b..51afd8e41 100644
--- a/engine/lib/group.php
+++ b/engine/lib/group.php
@@ -364,7 +364,7 @@
if ($row)
{
// Exists and you have access to it
- if ($exists = get_data_row("select guid from {$CONFIG->dbprefix}groups_entity where guid = {$guid}")) {
+ if ($exists = get_data_row("SELECT guid from {$CONFIG->dbprefix}groups_entity WHERE guid = {$guid}")) {
$result = update_data("UPDATE {$CONFIG->dbprefix}groups_entity set name='$name', description='$description' where guid=$guid");
if ($result!=false)
{
@@ -532,7 +532,7 @@
if (!$count) {
$query = "SELECT * from {$CONFIG->dbprefix}entities e join {$CONFIG->dbprefix}objects_entity o on e.guid=o.guid where ";
} else {
- $query = "select count(e.guid) as total from {$CONFIG->dbprefix}entities e join {$CONFIG->dbprefix}objects_entity o on e.guid=o.guid where ";
+ $query = "SELECT count(e.guid) as total from {$CONFIG->dbprefix}entities e join {$CONFIG->dbprefix}objects_entity o on e.guid=o.guid where ";
}
foreach ($where as $w)
$query .= " $w and ";