Merge "installer: make sqlite installer move the job queue to another DB"
[lhc/web/wiklou.git] / includes / resourceloader / ResourceLoaderImageModule.php
index c555eb8..d06e8ac 100644 (file)
@@ -184,9 +184,9 @@ class ResourceLoaderImageModule extends ResourceLoaderModule {
                                                $option = [ 'default' => $option ];
                                        }
                                        foreach ( $option as $skin => $data ) {
-                                               if ( !is_array( $option ) ) {
+                                               if ( !is_array( $data ) ) {
                                                        throw new InvalidArgumentException(
-                                                               "Invalid list error. '$option' given, array expected."
+                                                               "Invalid list error. '$data' given, array expected."
                                                        );
                                                }
                                        }