]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Slight code cleanup.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 24 Oct 2009 21:18:55 +0000 (21:18 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 24 Oct 2009 21:18:55 +0000 (21:18 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3577 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/access.php

index 5bc14fe46c8b4e307af51d1d3d258e7ee974742f..dd8295b9f0d799c41087ce4178c79e007ef0137a 100644 (file)
@@ -254,15 +254,16 @@ END;
  * @param string $table_prefix Optional table. prefix for the access code.
  * @param int $owner
  */
-function get_access_sql_suffix($table_prefix = "", $owner = null) {
+function get_access_sql_suffix($table_prefix = '', $owner = null) {
        global $ENTITY_SHOW_HIDDEN_OVERRIDE, $CONFIG;
 
        $sql = "";
        $friends_bit = "";
        $enemies_bit = "";
 
-       if ($table_prefix)
+       if ($table_prefix) {
                        $table_prefix = sanitise_string($table_prefix) . ".";
+       }
 
        if (!isset($owner)) {
                $owner = get_loggedin_userid();