]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed incorrect variable for subtype in get_entity_dates().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 22:03:52 +0000 (22:03 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 22:03:52 +0000 (22:03 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3896 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/entities.php

index b040ab150f25246495841e576a98c27a3bafb8ba..7bc1d4cdadc25adcec468cae67fd4a19f1b2189d 100644 (file)
@@ -2327,7 +2327,7 @@ function get_entity_dates($type = '', $subtype = '', $container_guid = 0, $site_
                        if (!$subtype_id = get_subtype_id($type, $subtype)) {
                                return FALSE;
                        } else {
-                               $where[] = "subtype=$subtype";
+                               $where[] = "subtype=$subtype_id";
                        }
                }
        }