Remove superfluous AS which doesn't work with Oracle.
authorJan Schneider <jan@horde.org>
Wed, 20 Jan 2010 14:25:38 +0000 (15:25 +0100)
committerJan Schneider <jan@horde.org>
Wed, 20 Jan 2010 22:32:07 +0000 (23:32 +0100)
framework/Share/Share/sql.php

index b566450..f2d5f7d 100644 (file)
@@ -705,7 +705,7 @@ class Horde_Share_sql extends Horde_Share {
             $where .= ' OR (' . Horde_SQL::buildClause($this->_db, 's.perm_default',  '&', $perm) . ')';
 
             // (name == perm_users and key == $userid and val & $perm)
-            $query .= ' LEFT JOIN ' . $this->_table . '_users AS u ON u.share_id = s.share_id';
+            $query .= ' LEFT JOIN ' . $this->_table . '_users u ON u.share_id = s.share_id';
              $where .= ' OR ( u.user_uid = ' .  $this->_write_db->quote($userid)
             . ' AND (' . Horde_SQL::buildClause($this->_db, 'u.perm', '&', $perm) . '))';
 
@@ -720,7 +720,7 @@ class Horde_Share_sql extends Horde_Share {
                 foreach ($ids as $id) {
                     $group_ids[] = $this->_db->quote($id);
                 }
-                $query .= ' LEFT JOIN ' . $this->_table . '_groups AS g ON g.share_id = s.share_id';
+                $query .= ' LEFT JOIN ' . $this->_table . '_groups g ON g.share_id = s.share_id';
                 $where .= ' OR (g.group_uid IN (' . implode(',', $group_ids) . ')'
                     . ' AND (' . Horde_SQL::buildClause($this->_db, 'g.perm', '&', $perm) . '))';
             } elseif (is_a($groups, 'PEAR_Error')) {