Skip to content

Commit 2b1feb4

Browse files
committed
5 bug fixed
1 parent 6917725 commit 2b1feb4

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Ajax/common/html/traits/NavElementTrait.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
namespace Ajax\common\html\traits;
33
use Ajax\JsUtils;
44

5+
/**
6+
* @author jc
7+
* @property string $identifier
8+
* @property string $root
9+
* @property string $attr
10+
*/
511
trait NavElementTrait{
12+
13+
abstract public function contentAsString();
614
/**
715
* Generate the jquery script to set the elements to the HtmlNavElement
816
* @param JsUtils $jsUtils

Ajax/semantic/widgets/base/InstanceViewer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ public function getCaption($index){
272272
public function getCaptions(){
273273
if(isset($this->captions)){
274274
$captions= \array_values($this->captions);
275-
for($i=\sizeof($captions);$i<$this->count();$i++){
275+
$captionsSize=\sizeof($captions);
276+
for($i=$captionsSize;$i<$this->count();$i++){
276277
$captions[]="";
277278
}
278279
}else{

0 commit comments

Comments
 (0)