]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fix checking for checked thumbnail.
authorPablo Martin <caedes@sindominio.net>
Tue, 23 Oct 2012 08:50:54 +0000 (08:50 +0000)
committerroot <root@migration.vz.lan>
Tue, 23 Oct 2012 08:51:08 +0000 (08:51 +0000)
upgrades/2012022501.php

index 50102e87572a02718f3fa8d3973d40e348908b9f..4118744edebd92d78080ba5684a93b0d603f2d38 100644 (file)
@@ -34,7 +34,7 @@ foreach ($items as $item) {
 function videolist_2012022501($item) {
 
        // do not upgrade videos that have already been upgraded
-       if ($item->thumbnail === true) {
+       if ($item->thumbnail === 1) {
                return true;
        }
 
@@ -51,7 +51,7 @@ function videolist_2012022501($item) {
        $filehandler->write($thumbnail);
        $filehandler->close();
        
-       $item->thumbnail = true;
+       $item->thumbnail = 1;
        return true;
 }