We have moved to Github. Please open tickets there.

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#2813 closed Defect (fixed)

get_config returns false when a parameter is not set

Reported by: skanan Owned by:
Priority: normal Milestone: Elgg 1.7.7
Component: Core Version: 1.7
Severity: minor Keywords:
Cc: brett@… Difficulty: easy

Description

get_config returns false when a parameter is not set. This makes it impossible to differentiate if a value was actually set to false or has not been set.

The function should return null if the value cannot be found/has not been set as opposed to false which is actually a value.

Change History (3)

comment:1 Changed 2 years ago by cash

  • Difficulty set to easy
  • Milestone changed from Needs Review to Elgg 1.7.7

comment:2 Changed 2 years ago by cash

  • Resolution set to fixed
  • Status changed from new to closed

(In [svn:7960]) Fixes #2813 returning null if a configuration value is not set instead of false

comment:3 Changed 2 years ago by brettp

(In [svn:8362]) Refs #2813, #2956. Ported get_config() returns null to 1.8's get_config() and elgg_get_config().

Note: See TracTickets for help on using tickets.