Changeset 27656


Ignore:
Timestamp:
Mar 11, 2014, 9:03:04 AM (7 years ago)
Author:
JanisV
Message:

Fixed for PHP 5.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/physical2virtual/main.inc.php

    r27549 r27656  
    22/*
    33Plugin Name: physical2virtual
    4 Version: 2.6.f
     4Version: 2.6.g
    55Description: Autoconvert physical albums to virtual
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=730
     
    113113      SELECT cat.id
    114114      FROM '.CATEGORIES_TABLE.' cat
    115       WHERE cat.dir IS NOT NULL
     115      WHERE cat.dir NOT NULL
    116116    )
    117117  ;';
     
    137137      foreach ($uppers as $upper)
    138138      {
    139         $parent = find_or_create_virtual_category($upper, $parent, $options)['id'];
     139        $t = find_or_create_virtual_category($upper, $parent, $options);
     140        $parent = $t['id'];
    140141      }
    141142    }
Note: See TracChangeset for help on using the changeset viewer.