fcaea63b84
* Use Smarty to split View and Controller on studs page (work in progress) * Add field "active" to Poll * And some other stuff...
10 lines
166 B
PHP
10 lines
166 B
PHP
<?php
|
|
|
|
function countStuds($subjects)
|
|
{
|
|
$nb = 0;
|
|
foreach($subjects as $subject) {
|
|
$nb += substr_count($subject->sujet, ',')+1;
|
|
}
|
|
return $nb;
|
|
} |