]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix return value of export
authorTom Needham <needham.thomas@gmail.com>
Sun, 11 Mar 2012 22:20:01 +0000 (22:20 +0000)
committerTom Needham <needham.thomas@gmail.com>
Sun, 11 Mar 2012 22:20:01 +0000 (22:20 +0000)
apps/bookmarks/lib/migrate.php

index 6e0b5c4cc492bdec7a067d7abe10e3765a0c45a0..451699ec15f73ce973e5f8bc90b3a64ad510137a 100644 (file)
@@ -19,7 +19,15 @@ class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
                );
                
                // Export tags
-               OC_Migrate::copyRows( $options );
+               $ids2 = OC_Migrate::copyRows( $options );
+               
+               // If both returned some ids then they worked
+               if( is_array( $ids ) && is_array( $ids2 ) )
+               {
+                       return true;    
+               } else {
+                       return false;
+               }
                
        }