Dotclear

Changeset 2740:a675d8bc85ae for plugins


Ignore:
Timestamp:
08/27/14 21:10:16 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Fix issue with php < 5.4 with syntax function()[$var]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/page.php

    r2737 r2740  
    1818$post_dt = ''; 
    1919$post_format = $core->auth->getOption('post_format'); 
    20 $editor = $core->auth->getOption('editor'); 
     20$post_editor = $core->auth->getOption('editor'); 
    2121$post_password = ''; 
    2222$post_url = ''; 
     
    285285 
    286286$admin_post_behavior = ''; 
    287 if (!empty($core->auth->getOption('editor')) && !empty($core->auth->getOption('editor')[$post_format])) { 
    288      $admin_post_behavior = $core->callBehavior('adminPostEditor', $core->auth->getOption('editor')[$post_format]); 
     287if ($post_editor && !empty($post_editor[$post_format])) { 
     288     $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format]); 
    289289} 
    290290 
Note: See TracChangeset for help on using the changeset viewer.

Sites map