summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-01-29 14:04:27 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-01-29 14:04:27 -0800
commitc4e360431564627003e4c7864b5dd5a07297e91e (patch)
treee50daa2b8e5071415fa7e15049ba940042955f11 /modules/gallery/models
parente4d9ea3394ee2db82d9dee6c6ed78543fd0f78fb (diff)
Strongly type the argument list to the model::validate method.
Diffstat (limited to 'modules/gallery/models')
-rw-r--r--modules/gallery/models/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index ae1b6608..ae6e4cc9 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -720,7 +720,7 @@ class Item_Model extends ORM_MPTT {
/**
* Specify our rules here so that we have access to the instance of this model.
*/
- public function validate($array=null) {
+ public function validate(Validation $array=null) {
if (!$array) {
$this->rules = array(
"album_cover_item_id" => array("callbacks" => array(array($this, "valid_album_cover"))),