Plugin Directory

Changeset 2132200


Ignore:
Timestamp:
08/01/2019 02:49:34 PM (7 years ago)
Author:
3pointross
Message:

Updates to 1.3.9

Location:
project-panorama-lite
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • project-panorama-lite/trunk/lib/psp-helpers.php

    r1905716 r2132200  
    353353
    354354                $task_stats['count']++;
    355                 $task_stats['completion'] += $task['complete'];
     355                if( isset($task['complete']) ) {
     356                    $task_stats['completion'] += $task['complete'];
     357                }
    356358
    357359            }
     
    409411
    410412                $task_stats['count']++;
    411                 $task_stats['completion'] += $task['complete'];
     413                if( isset($task['complete']) ) {
     414                    $task_stats['completion'] += $task['complete'];
     415                }
    412416
    413417            }
     
    12371241
    12381242    foreach( $tasks as $task ) {
    1239         if( $task['complete'] == 100 ) {
     1243        if( isset($task['complete']) && $task['complete'] == 100 ) {
    12401244            $count['complete']++;
    12411245        }
  • project-panorama-lite/trunk/lib/psp-timing.php

    r1640806 r2132200  
    411411    global $wp_query;
    412412
     413    if( !isset($_GET['psp_dates']) ) {
     414        return;
     415    }
     416
    413417    $date_tag = $_GET[ 'psp_dates' ];
    414418
  • project-panorama-lite/trunk/lib/templates/parts/documents-lite.php

    r1467316 r2132200  
    2020            foreach($documents as $doc):
    2121
    22                 if(isset($doc['file'])) { $file = $doc['file']; }
    23                 if(isset($doc['link'])) { $url = $doc['link']; }
     22                if( !isset($doc['title']) || empty($doc['title']) ) {
     23                    continue;
     24                }
    2425
    25                 // Check to see if there is a file, if not, use the manually entered URL
     26                $file = ( isset($doc['file']) ? $doc['file'] : false );
     27                $url  = ( isset($doc['link']) ? $doc['link'] : false );
    2628
    27                 if(!empty($file)) {
    28                     $doc_link = $doc['file'];
    29                 } else {
    30                     $doc_link = $url;
    31                 }
     29                $doc_link = ( $file ? $file : $url );
    3230
    3331                $icon = psp_get_icon_class($doc_link);
     
    4341                            <a href="<?php echo $doc_link; ?>" target="_new"><strong class="doc-title"><?php echo $doc['title']; ?></strong></a>
    4442                            <a class="doc-status status-<?php echo $doc['status']; ?>" href="#psp-du-doc-<?php echo $i; ?>"><?php echo $doc_status; ?></a>
     43                            <?php if( isset($doc['description']) && !empty($doc['description']) ): ?>
    4544                                <span class="description"><?php echo $doc['description']; ?></span>
     45                            <?php endif; ?>
    4646                        </p>
    4747
  • project-panorama-lite/trunk/lib/templates/parts/phases-lite.php

    r2101001 r2132200  
    152152                        <?php
    153153                        $t = 0;
    154                         foreach( $phase['tasks'] as $task ): ?>
     154                        foreach( $phase['tasks'] as $task ):
     155                            if( !isset($task['title']) || empty($task['title']) ) {
     156                                continue;
     157                            }
     158                            ?>
    155159                            <li class="<?php echo esc_attr( 'task-item task-item-' . $t ); ?>" data-progress="<?php echo esc_attr($task['complete']); ?>">
    156160                                <strong><?php echo esc_html($task['title']); ?></strong>
  • project-panorama-lite/trunk/project-panorama.php

    r2101001 r2132200  
    44 * Plugin URI: https://www.projectpanorama.com
    55 * Description: WordPress Project Management and Client Dashboard Plugin
    6  * Version: 1.3.8
     6 * Version: 1.3.9
    77 * Author: 37 MEDIA
    88 * Author URI: https://www.projectpanorama.com
     
    2525    'PROJECT_PANARAMA_URI'  => plugins_url( '', __FILE__ ),
    2626    'PROJECT_PANARAM_DIR'   => __DIR__,
    27     'PSP_VER'               => '1.3.7',
     27    'PSP_VER'               => '1.3.9',
    2828    'PSP_LITE_USE_TASKS'    => true,
    2929);
  • project-panorama-lite/trunk/readme.txt

    r2101001 r2132200  
    8585
    8686== Changelog ==
     87
     88= 1.3.9 =
     89* Fixes debug notices
    8790
    8891= 1.3.8 =
Note: See TracChangeset for help on using the changeset viewer.