Changeset 11381 for extensions/SmartAlbums/maintain.inc.php
- Timestamp:
- Jun 15, 2011, 4:43:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/maintain.inc.php
r11380 r11381 25 25 \'SmartAlbums\', 26 26 \''.serialize(array( 27 'update_on_upload' => false,27 'update_on_upload' => true, 28 28 ) 29 29 ).'\', … … 35 35 36 36 function plugin_activate() 37 { 38 global $conf;37 { 38 $sa_config = pwg_query('SELECT * FROM `' . CONFIG_TABLE . '` WHERE param = \'SmartAlbums\';'); 39 39 40 if (! isset($conf['SmartAlbums']))40 if (!pwg_db_num_rows($sa_config)) 41 41 { 42 42 pwg_query(' … … 45 45 \'SmartAlbums\', 46 46 \''.serialize(array( 47 'update_on_upload' => false,47 'update_on_upload' => true, 48 48 ) 49 49 ).'\',
Note: See TracChangeset
for help on using the changeset viewer.