Changeset 93


Ignore:
Timestamp:
Apr 15, 2006 12:20:11 AM (18 years ago)
Author:
scdev
Message:

Q - couple tweaks to PEdit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/PEdit.inc.php

    r92 r93  
    208208    function formBegin()
    209209    {
    210         if (!$this->_authorized) {
     210        if (!$this->_authorized || empty($this->_data)) {
    211211            return false;
    212212        }
     
    293293    function formEnd()
    294294    {
    295         if (!$this->_authorized || preg_match('/\.php__/', $_SERVER['PHP_SELF'])) {
     295        if (!$this->_authorized || empty($this->_data)) {
    296296            // Don't show form elements for versioned documents.
    297297            return false;
Note: See TracChangeset for help on using the changeset viewer.