We have moved to Github. Please open tickets there.

#4187 closed Enhancement (fixed)

get_entity optimization

Reported by: janlb Owned by:
Priority: normal Milestone: Elgg 1.8.2
Component: Core Version: 1.8.1
Severity: minor Keywords:
Cc: brett@… Difficulty:

Description

get_entity() can be optimized as it attempts to explicitly retrieve entities with a GUID of 0 (which will never exist).

This is not uncommon as a lot of functions which call get_entity often pass a $guid value which is optional in that function's arguments, and defaulted to 0.

Change History (3)

comment:1 Changed 18 months ago by janlb

comment:2 Changed 18 months ago by cash

  • Milestone changed from Needs Review to Elgg 1.8.2

comment:3 Changed 18 months ago by cash

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.