return true, or… return true

| January 5th, 2009

This method is supposed to determine if a post is a draft or not. I’ll let it speak for itself.

public function __get_draft() {
    if ($this->visible == 0 && $this->archived == 0 && $this->deleted = 0) {
        return true;
    } else {
        return true;
    }
}

Leave a Reply