Index: trunk/extensions/MarkAsHelpful/includes/MarkAsHelpfulItem.php |
— | — | @@ -39,8 +39,10 @@ |
40 | 40 | * @param $key string - the name of a property |
41 | 41 | */ |
42 | 42 | public function getProperty( $key ) { |
43 | | - if( isset( $key, $this->property) ) { |
| 43 | + if( array_key_exists( $key, $this->property) ) { |
44 | 44 | return $this->property[$key]; |
| 45 | + } else { |
| 46 | + return null; |
45 | 47 | } |
46 | 48 | } |
47 | 49 | |
— | — | @@ -50,7 +52,7 @@ |
51 | 53 | * @param $value mixed - the valud of the property |
52 | 54 | */ |
53 | 55 | public function setProperty( $key, $value ) { |
54 | | - if( isset( $key, $this->property) ) { |
| 56 | + if( array_key_exists( $key, $this->property) ) { |
55 | 57 | $this->property[$key] = $value; |
56 | 58 | } |
57 | 59 | } |