plugin/exo/Installation/Updater/Updater060200.php
private function checkInteractionGraphic()
    {
        $this->log('Checking InteractionGraphic ...');

        $checkQuery = '
            SELECT id, document_id, width, height
            FROM ujm_interaction_graphic
        ';

        $results = $this->connection->query($checkQuery)->fetchAll();
        foreach ($results as $res) {
            $this->connection->exec("
                UPDATE ujm_picture_temp
                SET width = {$res['width']}, height = {$res['height']}
                WHERE id = {$res['id']}
            ");
        }

        $this->connection->exec('
            UPDATE ujm_interaction_graphic
            SET document_id = NULL
        ');
    }
private function checkInteractionGraphic()
    {
        $this->log('Checking InteractionGraphic ...');

        $checkQuery = '
            SELECT id, document_id, width, height
            FROM ujm_interaction_graphic
        ';

        $results = $this->connection->query($checkQuery)->fetchAll();
        foreach ($results as $res) {
            $this->connection->exec("
                UPDATE ujm_picture_temp
                SET width = {$res['width']}, height = {$res['height']}
                WHERE id = {$res['id']}
            ");
        }

        $this->connection->exec('
            UPDATE ujm_interaction_graphic
            SET document_id = NULL
        ');
    }
private function checkInteractionGraphic ( ) { $ this -> log ( 'Checking InteractionGraphic ...' ) ; $ checkQuery = '
            SELECT id, document_id, width, height
            FROM ujm_interaction_graphic
        ' ; $ results = $ this -> connection -> query ( $ checkQuery ) -> fetchAll ( ) ; foreach ( $ results as $ res ) { $ this -> connection -> exec ( "
                UPDATE ujm_picture_temp
                SET width = {$res['width']}, height = {$res['height']}
                WHERE id = {$res['id']}
            " ) ; } $ this -> connection -> exec ( '
            UPDATE ujm_interaction_graphic
            SET document_id = NULL
        ' ) ; }
recover the width and height
move interaction_graphic -> picture.
recover the width and height move interaction_graphic - > picture .