Index: trunk/phase3/includes/BagOStuff.php |
— | — | @@ -130,9 +130,12 @@ |
131 | 131 | } |
132 | 132 | } |
133 | 133 | |
| 134 | + /** |
| 135 | + * @return null if lock is not possible. New value incremented by 1 |
| 136 | + */ |
134 | 137 | public function incr( $key, $value = 1 ) { |
135 | 138 | if ( !$this->lock( $key ) ) { |
136 | | - return false; |
| 139 | + return null; |
137 | 140 | } |
138 | 141 | |
139 | 142 | $value = intval( $value ); |