HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpwisesolutions/wp-content/plugins/ninja-forms/includes/Database/Models/Action.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * Class NF_Database_Models_Action
 */
final class NF_Database_Models_Action extends NF_Abstracts_Model
{
    private $form_id = '';

    protected $_type = 'action';

    protected $_table_name = 'nf3_actions';

    protected $_meta_table_name = 'nf3_action_meta';

    protected $_columns = array(
        'title',
        'key',
        'type',
        'active',
        'created_at',
        'label'
    );

    public function __construct( $db, $id, $parent_id = '' )
    {
        parent::__construct( $db, $id, $parent_id );

        /**
         * Remove new DB columns from our $_columns list if the user hasn't completed required upgrades stage 1.
         */
        $sql = "SHOW COLUMNS FROM {$db->prefix}nf3_actions LIKE 'label'";
        $results = $db->get_results( $sql );
        /**
         * If we don't have the label column, we need to remove our new columns.
         *
         * Also, set our db stage 1 tracker to false.
         */
        if ( empty ( $results ) ) {
            foreach( $this->_columns as $i => $col ) {
                if( 'label' === $col ) {
                    unset( $this->_columns[ $i ] );
                }
            }
            $this->db_stage_1_complete = false;
        }
    }

} // End NF_Database_Models_Action